summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-04-24 17:03:33 +0000
committerGerrit Code Review <review@openstack.org>2012-04-24 17:03:33 +0000
commitb11209ba8831f08188ef07dc0160b234ecf3ac63 (patch)
tree86402e4c15f31b83ad49c9a4baf66cdfd315f95a
parentdab653b3ac6d44d6d10f290c5d732aa679c8cdbd (diff)
parent9d9939d8785d92c4aed2873f98457baff593984b (diff)
Merge "Include name being searched for in exception message"
-rw-r--r--nova/virt/xenapi/vmops.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nova/virt/xenapi/vmops.py b/nova/virt/xenapi/vmops.py
index 770ff7459..de9095c5f 100644
--- a/nova/virt/xenapi/vmops.py
+++ b/nova/virt/xenapi/vmops.py
@@ -577,8 +577,8 @@ class VMOps(object):
def _get_vm_opaque_ref(self, instance):
vm_ref = VMHelper.lookup(self._session, instance['name'])
if vm_ref is None:
- raise exception.NotFound(_('Could not find VM by name'),
- instance=instance)
+ raise exception.NotFound(_('Could not find VM with name %s') %
+ instance['name'])
return vm_ref
def _acquire_bootlock(self, vm):