diff options
| author | matt.dietz@rackspace.com <> | 2011-06-16 13:56:52 -0500 |
|---|---|---|
| committer | matt.dietz@rackspace.com <> | 2011-06-16 13:56:52 -0500 |
| commit | 83df657360fe32315d6a55488de7dccdffa25c90 (patch) | |
| tree | 4444a0ae8c478dcc6ff94dfa2b2be60291f994da /nova/virt | |
| parent | 9f62def7b578fc85f85e174a031592a5c4750751 (diff) | |
Added a new test for confirming failure when no primary VDI is present
Diffstat (limited to 'nova/virt')
| -rw-r--r-- | nova/virt/xenapi/vm_utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py index c91a9bab7..7597a0e82 100644 --- a/nova/virt/xenapi/vm_utils.py +++ b/nova/virt/xenapi/vm_utils.py @@ -879,7 +879,7 @@ def get_vdi_for_vm_safely(session, vm_ref): else: num_vdis = len(vdi_refs) if num_vdis != 1: - raise Exception(_("Unexpected number of VDIs (%(num_vdis)s) found" + raise exception.Exception(_("Unexpected number of VDIs (%(num_vdis)s) found" " for VM %(vm_ref)s") % locals()) vdi_ref = vdi_refs[0] |
