Case correct InvalidInstanceID.NotFound

Change-Id: Iab067398205f51d640355ef91f0896afaecc4dea
This commit is contained in:
Attila Fazekas
2013-01-16 08:38:17 +01:00
parent f528f4ed9f
commit a1e1b5c192

View File

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