From 712a50ca27bf9e21fcb04d66085669612511b9d5 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 16 Nov 2023 18:22:59 -0500 Subject: [PATCH] Avoid use of fail here It causes a reraise with a bunch of extra entries that we don't need. --- api-daemon/pvcapid/vmbuilder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api-daemon/pvcapid/vmbuilder.py b/api-daemon/pvcapid/vmbuilder.py index a5f0de8e..b6d58d7e 100755 --- a/api-daemon/pvcapid/vmbuilder.py +++ b/api-daemon/pvcapid/vmbuilder.py @@ -100,7 +100,7 @@ class VMBuilder(object): log_err(None, msg) def fail(self, msg, exception=ProvisioningError): - fail(None, msg, exception=exception) + raise exception(msg) # # Primary class functions; implemented by the individual scripts