Skip to content

Commit

Permalink
Merge pull request #10 from nachandr/increase_timeout_ec2_stop_instances
Browse files Browse the repository at this point in the history
Increase timeout to check VM state after stopping VMs
  • Loading branch information
psav committed Jan 11, 2016
2 parents 31e945a + 36a2115 commit 3f5aebb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mgmtsystem/ec2.py
Expand Up @@ -189,7 +189,7 @@ def stop_vm(self, instance_id):
instance_id = self._get_instance_id_by_name(instance_id)
try:
self.api.stop_instances([instance_id])
self._block_until(instance_id, self.states['stopped'])
self._block_until(instance_id, self.states['stopped'], timeout=360)
return True
except ActionTimedOutError:
return False
Expand Down

0 comments on commit 3f5aebb

Please sign in to comment.