grammer
This commit is contained in:
parent
5a774839d7
commit
ac2e166e89
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ IP=`nova show $NAME | grep "private network" | cut -d"|" -f3`
|
||||||
MULTI_HOST=${MULTI_HOST:-0}
|
MULTI_HOST=${MULTI_HOST:-0}
|
||||||
if [ "$MULTI_HOST" = "0" ]; then
|
if [ "$MULTI_HOST" = "0" ]; then
|
||||||
# sometimes the first ping fails (10 seconds isn't enough time for the VM's
|
# sometimes the first ping fails (10 seconds isn't enough time for the VM's
|
||||||
# network to respond?), so let's for 15 seconds pinging with a timeout
|
# network to respond?), so let's ping for 15 seconds with a timeout
|
||||||
# of a second.
|
# of a second.
|
||||||
if ! timeout 15 sh -c "while ! ping -c1 -w1 $IP; do sleep 1; done"; then
|
if ! timeout 15 sh -c "while ! ping -c1 -w1 $IP; do sleep 1; done"; then
|
||||||
echo "Couldn't ping server"
|
echo "Couldn't ping server"
|
||||||
|
|
Loading…
Reference in a new issue