From a1e1b5c192d3c6176c9a16da9db4ff98a64fbe7c Mon Sep 17 00:00:00 2001 From: Attila Fazekas Date: Wed, 16 Jan 2013 08:38:17 +0100 Subject: [PATCH] Case correct InvalidInstanceID.NotFound Change-Id: Iab067398205f51d640355ef91f0896afaecc4dea --- exercises/euca.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercises/euca.sh b/exercises/euca.sh index 46e40251aa..7b35f6feec 100755 --- a/exercises/euca.sh +++ b/exercises/euca.sh @@ -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