Merge lp:~ewanmellor/nova/lp651887 into lp:~hudson-openstack/nova/trunk

Proposed by Ewan Mellor
Status: Merged
Approved by: Jay Pipes
Approved revision: 311
Merged at revision: 311
Proposed branch: lp:~ewanmellor/nova/lp651887
Merge into: lp:~hudson-openstack/nova/trunk
Diff against target: 14 lines (+2/-2)
1 file modified
nova/virt/xenapi.py (+2/-2)
To merge this branch: bzr merge lp:~ewanmellor/nova/lp651887
Reviewer Review Type Date Requested Status
Jay Pipes (community) Approve
Review via email: mp+37111@code.launchpad.net

Commit message

Bug #651887: xenapi list_instances completely broken

  Don't just compute the result for list_instances -- return it!

To post a comment you must log in.
Revision history for this message
Jay Pipes (jaypipes) wrote :

hmm, how did this get past our test suite...

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nova/virt/xenapi.py'
2--- nova/virt/xenapi.py 2010-09-10 09:56:22 +0000
3+++ nova/virt/xenapi.py 2010-09-30 09:28:42 +0000
4@@ -103,8 +103,8 @@
5 self._conn.login_with_password(user, pw)
6
7 def list_instances(self):
8- result = [self._conn.xenapi.VM.get_name_label(vm) \
9- for vm in self._conn.xenapi.VM.get_all()]
10+ return [self._conn.xenapi.VM.get_name_label(vm) \
11+ for vm in self._conn.xenapi.VM.get_all()]
12
13 @defer.inlineCallbacks
14 def spawn(self, instance):