summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--nova/virt/hyperv.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/nova/virt/hyperv.py b/nova/virt/hyperv.py
index 968889116..9adb2f00a 100644
--- a/nova/virt/hyperv.py
+++ b/nova/virt/hyperv.py
@@ -161,8 +161,7 @@ class HyperVConnection(object):
success = (ret_val == 0)
if not success:
- raise VmResourceAllocationException('Failed to create VM %s',
- instance.name)
+ raise Exception('Failed to create VM %s', instance.name)
logging.debug('Created VM %s...', instance.name)
vm = self._conn.Msvm_ComputerSystem(ElementName=instance.name)[0]