diff options
| author | Jenkins <jenkins@review.openstack.org> | 2012-04-24 17:03:33 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2012-04-24 17:03:33 +0000 |
| commit | b11209ba8831f08188ef07dc0160b234ecf3ac63 (patch) | |
| tree | 86402e4c15f31b83ad49c9a4baf66cdfd315f95a | |
| parent | dab653b3ac6d44d6d10f290c5d732aa679c8cdbd (diff) | |
| parent | 9d9939d8785d92c4aed2873f98457baff593984b (diff) | |
Merge "Include name being searched for in exception message"
| -rw-r--r-- | nova/virt/xenapi/vmops.py | 4 |
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): |
