diff options
| author | Ewan Mellor <emellor@silver> | 2010-09-30 14:53:40 +0000 |
|---|---|---|
| committer | Tarmac <> | 2010-09-30 14:53:40 +0000 |
| commit | 4b432ddce0e54fab43c8352404d7be9af9677ea7 (patch) | |
| tree | bdeaf38ee3eb52f84631a365fc32737dfbb1261d | |
| parent | 5654c7848048ecad0aef020b96001aed3e5c1bdc (diff) | |
| parent | 8c21cc52b1ba007fc12964ea5973290a3f660662 (diff) | |
Bug #651887: xenapi list_instances completely broken
Don't just compute the result for list_instances -- return it!
| -rw-r--r-- | nova/virt/xenapi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/virt/xenapi.py b/nova/virt/xenapi.py index 1c6de4403..0d06b1fce 100644 --- a/nova/virt/xenapi.py +++ b/nova/virt/xenapi.py @@ -103,8 +103,8 @@ class XenAPIConnection(object): self._conn.login_with_password(user, pw) def list_instances(self): - result = [self._conn.xenapi.VM.get_name_label(vm) \ - for vm in self._conn.xenapi.VM.get_all()] + return [self._conn.xenapi.VM.get_name_label(vm) \ + for vm in self._conn.xenapi.VM.get_all()] @defer.inlineCallbacks def spawn(self, instance): |
