summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorThierry Carrez <thierry@openstack.org>2011-06-10 16:53:06 +0200
committerThierry Carrez <thierry@openstack.org>2011-06-10 16:53:06 +0200
commitfebb7130192afcc77408643b5bba595c784671d3 (patch)
tree01b02f64e8035c223ca33b54722a7bf01529f684 /nova/api
parent50c9ebfdc00a87d1a37a11501e5678de89e25a4f (diff)
Only update updateable fields
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/ec2/cloud.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/ec2/cloud.py b/nova/api/ec2/cloud.py
index 316298c39..4a2387a0a 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -967,7 +967,7 @@ class CloudController(object):
changes[field] = kwargs[field]
if changes:
instance_id = ec2utils.ec2_id_to_id(instance_id)
- self.compute_api.update(context, instance_id=instance_id, **kwargs)
+ self.compute_api.update(context, instance_id=instance_id, **changes)
return True
@staticmethod