From 9250a5d8c18311005329ec622482d1c2a29de307 Mon Sep 17 00:00:00 2001 From: Eoghan Glynn Date: Tue, 17 Jul 2012 18:18:07 +0100 Subject: Fix EC2 CreateImage no_reboot logic Previously the call to restart the imaged instance was incorrect. This is now fixed and unit tested. Change-Id: Ifde193e084ecdbc37a57150f28d833ae276f49c6 --- nova/api/ec2/cloud.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/api') diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py index e0fb434d0..8a9f5f158 100644 --- a/nova/api/ec2/cloud.py +++ b/nova/api/ec2/cloud.py @@ -1578,7 +1578,7 @@ class CloudController(object): ec2_id = ec2utils.glance_id_to_ec2_id(context, new_image['id']) if restart_instance: - self.compute_api.start(context, instance_id=instance_id) + self.compute_api.start(context, instance) return {'imageId': ec2_id} -- cgit