summaryrefslogtreecommitdiffstats
path: root/nova/api
diff options
context:
space:
mode:
authorBrian Waldon <bcwaldon@gmail.com>2012-03-01 14:51:03 -0800
committerBrian Waldon <bcwaldon@gmail.com>2012-03-01 15:17:17 -0800
commitff716dee035dd51257b240fad842ecfd70d9d90d (patch)
treea1594f6274e7d8b0c32cf133ed1268d5c42f0145 /nova/api
parentd65a4e4023e9994c8a14a1da4aa4eeb4f6452640 (diff)
downloadnova-ff716dee035dd51257b240fad842ecfd70d9d90d.tar.gz
nova-ff716dee035dd51257b240fad842ecfd70d9d90d.tar.xz
nova-ff716dee035dd51257b240fad842ecfd70d9d90d.zip
Ensure image status filter matches glance format
* Fixes bug 943259 Change-Id: Id5172aa40be2f5a337b3e192b4bee8139c16c4d3
Diffstat (limited to 'nova/api')
-rw-r--r--nova/api/openstack/compute/images.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/api/openstack/compute/images.py b/nova/api/openstack/compute/images.py
index 1a957bc56..8cf6ea4ad 100644
--- a/nova/api/openstack/compute/images.py
+++ b/nova/api/openstack/compute/images.py
@@ -124,6 +124,11 @@ class Controller(wsgi.Controller):
except (AttributeError, IndexError, KeyError):
pass
+ filter_name = 'status'
+ if filter_name in filters:
+ # The Image API expects us to use lowercase strings for status
+ filters[filter_name] = filters[filter_name].lower()
+
return filters
@wsgi.serializers(xml=ImageTemplate)