Merge lp:~justin-fathomdb/nova/bug724143 into lp:~hudson-openstack/nova/trunk

Proposed by justinsb
Status: Merged
Approved by: Vish Ishaya
Approved revision: 729
Merged at revision: 734
Proposed branch: lp:~justin-fathomdb/nova/bug724143
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 11 lines (+1/-1)
1 file modified
nova/api/openstack/servers.py (+1/-1)
To merge this branch: bzr merge lp:~justin-fathomdb/nova/bug724143
Reviewer Review Type Date Requested Status
Vish Ishaya (community) Approve
Jay Pipes (community) Approve
Thierry Carrez (community) Disapprove
Review via email: mp+51079@code.launchpad.net

Description of the change

Don't require metadata (hotfix for bug 724143)

To post a comment you must log in.
Revision history for this message
Thierry Carrez (ttx) wrote :
review: Disapprove
Revision history for this message
justinsb (justin-fathomdb) wrote :

Thierry: This patch is a hotfix. It works around the bug so that the affected user can carry on. The other branch has the fix, but also also a lot of dependencies to support testing (e.g. keys & volumes code), and probably is at least 2 days from being merged. The affected user shouldn't be out-of-operation for those 2+ days. Nor should the affected user merge the other branch, because it's likely to change during the review process, and I'm not yet making the same promises about that branch that I will once it lands in trunk.

The good news is that the fix is the same in both branches, so the hotfix looks good.

Revision history for this message
Jay Pipes (jaypipes) wrote :

lgtm.

review: Approve
Revision history for this message
Vish Ishaya (vishvananda) wrote :

hotfix lgtm.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nova/api/openstack/servers.py'
2--- nova/api/openstack/servers.py 2011-02-23 22:50:33 +0000
3+++ nova/api/openstack/servers.py 2011-02-24 07:01:57 +0000
4@@ -177,7 +177,7 @@
5 # However, the CloudServers API is not definitive on this front,
6 # and we want to be compatible.
7 metadata = []
8- if env['server']['metadata']:
9+ if env['server'].get('metadata'):
10 for k, v in env['server']['metadata'].items():
11 metadata.append({'key': k, 'value': v})
12