summaryrefslogtreecommitdiffstats
path: root/nova/virt
diff options
context:
space:
mode:
authorJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-10-31 15:11:36 +0000
committerJohannes Erdfelt <johannes.erdfelt@rackspace.com>2011-10-31 16:42:47 +0000
commite2403739d5e866e011ecc45a4d5b20d5e0192997 (patch)
treef3593bac5cc6b934f4e122d8a55d02f8599e8bce /nova/virt
parent5b8133a83939fd552b569c4b034cef43907ea1ce (diff)
Log original dropped exception when a new exception occurs
If a exception is caught while processing a previous exception, make sure to log it so it doesn't silently get discarded Change-Id: Ic887db9c2592229970737daf5dd9732b2258877b
Diffstat (limited to 'nova/virt')
-rw-r--r--nova/virt/xenapi/vm_utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/virt/xenapi/vm_utils.py b/nova/virt/xenapi/vm_utils.py
index 7142d0457..5b08a3c69 100644
--- a/nova/virt/xenapi/vm_utils.py
+++ b/nova/virt/xenapi/vm_utils.py
@@ -523,7 +523,7 @@ w
cls.create_vbd(session, vm_ref, vdi_ref, userdevice,
bootable=False)
except:
- with utils.original_exception_raised():
+ with utils.save_and_reraise_exception():
cls.destroy_vdi(session, vdi_ref)
@classmethod