Merge "Fix instance stop in EC2 create_image"

This commit is contained in:
Jenkins
2012-02-24 01:42:46 +00:00
committed by Gerrit Code Review

View File

@@ -1531,7 +1531,7 @@ class CloudController(object):
if vm_state in (vm_states.ACTIVE, vm_states.SHUTOFF):
restart_instance = True
self.compute_api.stop(context, instance_id=instance_id)
self.compute_api.stop(context, instance)
# wait instance for really stopped
start_time = time.time()