Skip to content

Commit

Permalink
Specify timeout to check VM state after stopping VMs
Browse files Browse the repository at this point in the history
  • Loading branch information
nachandr committed Jan 11, 2016
1 parent 31e945a commit 36a2115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mgmtsystem/ec2.py
Original file line number Diff line number Diff line change
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 36a2115

Please sign in to comment.