Simplify ping usage for service VM check in CI
Just rely on the return code from "ping" instead of parsing it's output when checking the service VM during the CI run. Change-Id: I20f144687662a0dda5fdfc0293ab578009658c1b
This commit is contained in:
parent
28fb0443f7
commit
6eb3a2d05b
@ -13,7 +13,7 @@ function manila_check_service_vm_availability {
|
||||
wait_timeout=300
|
||||
available='false'
|
||||
while (( wait_timeout > 0 )) ; do
|
||||
if [[ "$(ping -w 1 $1)" =~ "1 received" ]]; then
|
||||
if ping -w 1 $1; then
|
||||
available='true'
|
||||
break
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user