From 823ce8cbf222175ada22188d72cd04e6f5b3481b Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 16 Nov 2023 18:19:05 -0500 Subject: [PATCH] Remove duplicate cleanups --- api-daemon/pvcapid/vmbuilder.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/api-daemon/pvcapid/vmbuilder.py b/api-daemon/pvcapid/vmbuilder.py index 537e48b9..a5f0de8e 100755 --- a/api-daemon/pvcapid/vmbuilder.py +++ b/api-daemon/pvcapid/vmbuilder.py @@ -698,7 +698,6 @@ def create_vm( with chroot(temp_dir): vm_builder.setup() except Exception as e: - general_cleanup() fail_clean( celery, f"Error in script setup() step: {e}", @@ -720,7 +719,6 @@ def create_vm( with chroot(temp_dir): vm_schema = vm_builder.create() except Exception as e: - general_cleanup() fail_clean( celery, f"Error in script create() step: {e}", @@ -766,9 +764,6 @@ def create_vm( with chroot(temp_dir): vm_builder.prepare() except Exception as e: - with chroot(temp_dir): - vm_builder.cleanup() - general_cleanup() fail_clean( celery, f"Error in script prepare() step: {e}", @@ -789,9 +784,6 @@ def create_vm( with chroot(temp_dir): vm_builder.install() except Exception as e: - with chroot(temp_dir): - vm_builder.cleanup() - general_cleanup() fail_clean( celery, f"Error in script install() step: {e}",