summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorSandy Walsh <sandy.walsh@rackspace.com>2011-01-26 16:07:16 +0000
committerTarmac <>2011-01-26 16:07:16 +0000
commit8d04abda758a6f322b97013142d9875369276259 (patch)
treeb64198236e389549e5312e47e76553b7527cc762 /nova/api
parent5e4259ce6deb227b778acf23770e35f786c9c3d0 (diff)
parentf04b58b1eacccf29162d9898e428ae84a62b3d9c (diff)
Simple little changes related to openstack api to work better with glance.
Fixes ImageID missing from Glance and int->string id problem.
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/common.py b/nova/api/openstack/common.py
index 037ed47a0..6d2fa16e8 100644
--- a/nova/api/openstack/common.py
+++ b/nova/api/openstack/common.py
@@ -54,7 +54,7 @@ def get_image_id_from_image_hash(image_service, context, image_hash):
except NotImplementedError:
items = image_service.index(context)
for image in items:
- image_id = image['imageId']
+ image_id = image['id']
if abs(hash(image_id)) == int(image_hash):
return image_id
raise exception.NotFound(image_hash)