summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorDan Prince <dan.prince@rackspace.com>2011-06-30 13:25:41 +0000
committerTarmac <>2011-06-30 13:25:41 +0000
commit0c2cbccfb596f57008c87aa4dc2210eca92a4c8f (patch)
tree64013311dc2bc07b6dea06e48fe6af569e8fd28a /nova/api
parentedfacac605f6887d1b093c8c79a143d28e2083d9 (diff)
parentd1c5b8c9a5c54a7000d21451ff4649b1a772dfad (diff)
downloadnova-0c2cbccfb596f57008c87aa4dc2210eca92a4c8f.tar.gz
nova-0c2cbccfb596f57008c87aa4dc2210eca92a4c8f.tar.xz
nova-0c2cbccfb596f57008c87aa4dc2210eca92a4c8f.zip
Update the ec2 get_metadata handler so it works with the most recent version of the compute API get_all call which now returns a list if there is only a single record.
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 9aaf37a2d..25aeceea6 100644
--- a/nova/api/ec2/cloud.py
+++ b/nova/api/ec2/cloud.py
@@ -152,7 +152,7 @@ class CloudController(object):
# This ensures that all attributes of the instance
# are populated.
- instance_ref = db.instance_get(ctxt, instance_ref['id'])
+ instance_ref = db.instance_get(ctxt, instance_ref[0]['id'])
mpi = self._get_mpi_data(ctxt, instance_ref['project_id'])
if instance_ref['key_name']: