summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorTrey Morris <trey.morris@rackspace.com>2010-12-27 20:39:48 +0000
committerTrey Morris <trey.morris@rackspace.com>2010-12-27 20:39:48 +0000
commit243ba12a903b2eac30dd99305a92f76e430cfb49 (patch)
tree17e466133d296e985593ee83bcc9d724575910b2 /nova/api
parente86f765181a9d0a75486a98e827cc8505b7c4111 (diff)
downloadnova-243ba12a903b2eac30dd99305a92f76e430cfb49.tar.gz
nova-243ba12a903b2eac30dd99305a92f76e430cfb49.tar.xz
nova-243ba12a903b2eac30dd99305a92f76e430cfb49.zip
translate status was returning the wrong item
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/images.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/nova/api/openstack/images.py b/nova/api/openstack/images.py
index 77625bab5..ba35fbc78 100644
--- a/nova/api/openstack/images.py
+++ b/nova/api/openstack/images.py
@@ -71,14 +71,13 @@ def _translate_status(item):
and the set of statuses returned by the image service are equivalent
"""
- mapped_item = {}
status_mapping = {
'pending': 'queued',
'decrypting': 'preparing',
'untarring': 'saving',
'available': 'active'}
- mapped_item['status'] = status_mapping[item['status']]
- return mapped_item
+ item['status'] = status_mapping[item['status']]
+ return item
def _filter_keys(item, keys):