Case correct InvalidInstanceID.NotFound
Change-Id: Iab067398205f51d640355ef91f0896afaecc4dea
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user