Commits

zzzeek  committed 4b5a21e

wait 10 seconds up to 10 tries

  • Participants
  • Parent commits aebe175

Comments (0)

Files changed (1)

File ec2control/ec2.py

 
         # grease the wheels, seems to 
         # say "stopped" for a second here
-        time.sleep(10)
+        for i in xrange(10):
+            if inst.state == 'stopped':
+                time.sleep(10)
+            else:
+                break
 
         self.status = inst.state
         log.info("Status: %s", self.status)