Wait for instance termination to complete.
This patch waits for instance termination to complete before trying to
delete the security group. The last change to simply move the security
group deletion to after euca-terminate-instance was not sufficient, as
it has to wait until the termination is complete.
Change-Id: Icba579534f324afb4d44abd42d8c755834dd2a57
diff --git a/openrc b/openrc
index df011a3..d742ced 100644
--- a/openrc
+++ b/openrc
@@ -89,3 +89,6 @@
# Max time to wait for proper IP association and dis-association.
export ASSOCIATE_TIMEOUT=${ASSOCIATE_TIMEOUT:-15}
+
+# Max time to wait for a vm to terminate
+export TERMINATE_TIMEOUT=${TERMINATE_TIMEOUT:-30}