diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-03-06 23:05:12 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-03-06 23:05:12 +0000 |
| commit | 67715309a1cda8cc56bf4e528774f75e652bf6d5 (patch) | |
| tree | 6aa19bc780adee820079e59376ca8212c0fd647e /nova/api | |
| parent | 922420faf353f0296eacee00e8c0ba372c04fbea (diff) | |
| parent | ff716dee035dd51257b240fad842ecfd70d9d90d (diff) | |
| download | nova-67715309a1cda8cc56bf4e528774f75e652bf6d5.tar.gz nova-67715309a1cda8cc56bf4e528774f75e652bf6d5.tar.xz nova-67715309a1cda8cc56bf4e528774f75e652bf6d5.zip | |
Merge "Ensure image status filter matches glance format"
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/compute/images.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nova/api/openstack/compute/images.py b/nova/api/openstack/compute/images.py index eceee6651..629ba67d5 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) |
