diff options
| author | Ken Pepple <ken.pepple@gmail.com> | 2011-04-04 15:58:41 -0700 |
|---|---|---|
| committer | Ken Pepple <ken.pepple@gmail.com> | 2011-04-04 15:58:41 -0700 |
| commit | 5c67809e4b9a1546c48316ea52676dfeba8f1a75 (patch) | |
| tree | 5ad09c099e7840049088a1754d853b0879080ee4 | |
| parent | 08417c48c223ad1b698ab1d00686a967b6a2dc0a (diff) | |
openstack api requires uppercase image format status responses
| -rw-r--r-- | nova/api/openstack/views/images.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/nova/api/openstack/views/images.py b/nova/api/openstack/views/images.py index 16195b050..9dec8a355 100644 --- a/nova/api/openstack/views/images.py +++ b/nova/api/openstack/views/images.py @@ -34,11 +34,11 @@ class ViewBuilder(object): def _format_status(self, image): """Update the status field to standardize format.""" status_mapping = { - 'pending': 'queued', - 'decrypting': 'preparing', - 'untarring': 'saving', - 'available': 'active', - 'killed': 'failed', + 'pending': 'QUEUED', + 'decrypting': 'PREPARING', + 'untarring': 'SAVING', + 'available': 'ACTIVE', + 'killed': 'FAILED', } try: |
