Skip to content

Commit

Permalink
Don't require metadata (hotfix for bug 724143)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinsb authored and Tarmac committed Feb 24, 2011
2 parents 25f50fb + 701e1c1 commit c8b630a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nova/api/openstack/servers.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def create(self, req):
# 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})

Expand Down

0 comments on commit c8b630a

Please sign in to comment.