diff options
| author | Justin Santa Barbara <justin@fathomdb.com> | 2011-02-23 22:53:44 -0800 |
|---|---|---|
| committer | Justin Santa Barbara <justin@fathomdb.com> | 2011-02-23 22:53:44 -0800 |
| commit | 701e1c15944062f7d229e59f2ede06398226b165 (patch) | |
| tree | 2598f70bbbaf41eb6a52b378c15675c5ec7b1e53 /nova/api | |
| parent | f277be5839c76dc2b9efb6ad49dc2a979b1a028d (diff) | |
| download | nova-701e1c15944062f7d229e59f2ede06398226b165.tar.gz nova-701e1c15944062f7d229e59f2ede06398226b165.tar.xz nova-701e1c15944062f7d229e59f2ede06398226b165.zip | |
Hotfix to not require metadata
Diffstat (limited to 'nova/api')
| -rw-r--r-- | nova/api/openstack/servers.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/api/openstack/servers.py b/nova/api/openstack/servers.py index 63e047b39..841bab6d0 100644 --- a/nova/api/openstack/servers.py +++ b/nova/api/openstack/servers.py @@ -177,7 +177,7 @@ class Controller(wsgi.Controller): # However, the CloudServers API is not definitive on this front, # and we want to be compatible. metadata = [] - if env['server']['metadata']: + if env['server'].get('metadata'): for k, v in env['server']['metadata'].items(): metadata.append({'key': k, 'value': v}) |
