Browse code

Case correct InvalidInstanceID.NotFound

Change-Id: Iab067398205f51d640355ef91f0896afaecc4dea

Attila Fazekas authored on 2013/01/16 16:38:17
Showing 1 changed files
... ...
@@ -169,7 +169,7 @@ euca-terminate-instances $INSTANCE || \
169 169
 # case changed with bug/836978. Requesting the status of an invalid instance
170 170
 # will now return an error message including the instance id, so we need to
171 171
 # filter that out.
172
-if ! timeout $TERMINATE_TIMEOUT sh -c "while euca-describe-instances $INSTANCE | grep -ve \"\\\(InstanceNotFound\\\|InvalidInstanceId\[.\]NotFound\\\)\" | grep -q $INSTANCE; do sleep 1; done"; then
172
+if ! timeout $TERMINATE_TIMEOUT sh -c "while euca-describe-instances $INSTANCE | grep -ve \"\\\(InstanceNotFound\\\|InvalidInstanceID\[.\]NotFound\\\)\" | grep -q $INSTANCE; do sleep 1; done"; then
173 173
     echo "server didn't terminate within $TERMINATE_TIMEOUT seconds"
174 174
     exit 1
175 175
 fi