Ensure temp_dir exists before starting

Otherwise some failures throw the wrong error.
This commit is contained in:
Joshua Boniface 2021-05-30 16:04:38 -04:00
parent 60db800d9c
commit ac0c3b0ec9
1 changed files with 2 additions and 0 deletions

View File

@ -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))