Merge lp:~soren/nova/metadata-full-instance-objects into lp:~hudson-openstack/nova/trunk
Proposed by
Soren Hansen
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Soren Hansen | ||||
Approved revision: | 975 | ||||
Merged at revision: | 980 | ||||
Proposed branch: | lp:~soren/nova/metadata-full-instance-objects | ||||
Merge into: | lp:~hudson-openstack/nova/trunk | ||||
Diff against target: |
15 lines (+5/-0) 1 file modified
nova/api/ec2/cloud.py (+5/-0) |
||||
To merge this branch: | bzr merge lp:~soren/nova/metadata-full-instance-objects | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jay Pipes (community) | Approve | ||
Dan Prince (community) | Approve | ||
Vish Ishaya (community) | Approve | ||
Thierry Carrez (community) | Approve | ||
Review via email: mp+57177@code.launchpad.net |
Commit message
Replace instance ref from compute.api.get_all with one from instance_get. This should ensure it gets fully populated with all the relevant attributes.
Description of the change
This is a pretty crude, but quite unintrusive patch to fix the linked bug.
We really should make up our minds as to whether we're going to let SQLAlchemy handle lazy attribute lookups or if we should start doing all these attribute lookups explicitly and manually. All these joinedloads that need to be applied in different places is turning in to quite a maintenance nightmare.
To post a comment you must log in.
Fixes the issue for me, and looks good and tidy.