summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEwan Mellor <ewan.mellor@citrix.com>2010-08-12 16:37:18 +0000
committerTarmac <>2010-08-12 16:37:18 +0000
commit923b08a2a45f9d1b05ee870f627a2102208efaef (patch)
treeb0f49d43f98613d429317171a5c8f3e67b4d7d3f
parentf65d2ef299eb077ae164c3e6c44e67a42c631727 (diff)
parent57beed337d3c267b69eaf73f166fd00ea29f2498 (diff)
downloadnova-923b08a2a45f9d1b05ee870f627a2102208efaef.tar.gz
nova-923b08a2a45f9d1b05ee870f627a2102208efaef.tar.xz
nova-923b08a2a45f9d1b05ee870f627a2102208efaef.zip
Fix exception in get_info.
-rw-r--r--nova/virt/xenapi.py2
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,