From e2403739d5e866e011ecc45a4d5b20d5e0192997 Mon Sep 17 00:00:00 2001 From: Johannes Erdfelt Date: Mon, 31 Oct 2011 15:11:36 +0000 Subject: 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 --- nova/virt/xenapi/vm_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nova/virt') 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 -- cgit