diff options
| author | Matthew Hooker <matt@cloudscaling.com> | 2011-08-03 14:51:47 -0400 |
|---|---|---|
| committer | Matthew Hooker <matt@cloudscaling.com> | 2011-08-03 14:51:47 -0400 |
| commit | 4aada43cc0d1a3cb32094d6d6be1eb662f01d063 (patch) | |
| tree | a82e96843c413a3a63bd3668a62c928fab995434 | |
| parent | 98307324d7b1cce2f7312d1195c9674f0e0323b6 (diff) | |
use an existing exception
| -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 60ef0df43..8a715af35 100644 --- a/nova/virt/xenapi/vm_utils.py +++ b/nova/virt/xenapi/vm_utils.py @@ -794,7 +794,7 @@ def get_vdi_for_vm_safely(session, vm_ref): else: num_vdis = len(vdi_refs) if num_vdis != 1: - raise exception.Exception(_("Unexpected number of VDIs" + raise exception.Error(_("Unexpected number of VDIs" "(%(num_vdis)s) found" " for VM %(vm_ref)s") % locals()) |
