diff options
| author | Ewan Mellor <ewan.mellor@citrix.com> | 2010-08-03 15:42:17 +0100 |
|---|---|---|
| committer | Ewan Mellor <ewan.mellor@citrix.com> | 2010-08-03 15:42:17 +0100 |
| commit | 035f93aa7dc19656bf22de9b7ccfe12b28cde61b (patch) | |
| tree | 21468475e8eba9ab5a93cc125d33b6c4ab136e31 | |
| parent | 89e057cf2f008ebb7ec1c99605ff99f5849d9b40 (diff) | |
| download | nova-035f93aa7dc19656bf22de9b7ccfe12b28cde61b.tar.gz nova-035f93aa7dc19656bf22de9b7ccfe12b28cde61b.tar.xz nova-035f93aa7dc19656bf22de9b7ccfe12b28cde61b.zip | |
Fix exception in get_info.
| -rw-r--r-- | nova/virt/xenapi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/xenapi.py b/nova/virt/xenapi.py index b4768cffa..c3e84c2b9 100644 --- a/nova/virt/xenapi.py +++ b/nova/virt/xenapi.py @@ -227,7 +227,7 @@ class XenAPIConnection(object): def get_info(self, instance_id): vm = self.lookup(instance_id) if vm is None: - raise Exception('instance not present %s' % instance.name) + raise Exception('instance not present %s' % instance_id) rec = self._conn.xenapi.VM.get_record(vm) return {'state': power_state_from_xenapi[rec['power_state']], 'max_mem': long(rec['memory_static_max']) >> 10, |
