Avoid getting to "(try 4 of 3)" tries to build the instance (#40)

This commit is contained in:
Chris Morgan 2018-11-28 18:24:43 -05:00 committed by Pete Vander Giessen
parent 454fd38526
commit d47a1602f4
1 changed files with 1 additions and 1 deletions

View File

@ -34,10 +34,10 @@ fi
TRIES=0
while [[ $(openstack server list | grep $SERVER | grep ERROR) ]]; do
TRIES=$(($TRIES + 1))
if test $TRIES -gt 3; then
break
fi
TRIES=$(($TRIES + 1))
echo "I ran into an issue launching an instance. Retrying ... (try $TRIES of 3)"
openstack server delete $SERVER
openstack server create --flavor m1.tiny --image cirros --nic net-id=test --key-name microstack $SERVER