From ac0c3b0ec9995bd7a6b0df44ea7af8aabd3e6ebc Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 30 May 2021 16:04:38 -0400 Subject: [PATCH] Ensure temp_dir exists before starting Otherwise some failures throw the wrong error. --- api-daemon/pvcapid/provisioner.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api-daemon/pvcapid/provisioner.py b/api-daemon/pvcapid/provisioner.py index 6e7cf159..6c058112 100755 --- a/api-daemon/pvcapid/provisioner.py +++ b/api-daemon/pvcapid/provisioner.py @@ -1059,6 +1059,8 @@ def create_vm(self, vm_name, vm_profile, define_vm=True, start_vm=True, script_r import datetime import random + temp_dir = None + time.sleep(2) print("Starting provisioning of VM '{}' with profile '{}'".format(vm_name, vm_profile))