diff --git a/api-daemon/provisioner/examples/script/2-ova.py b/api-daemon/provisioner/examples/script/2-ova.py index 4364fa9f..2ee22381 100644 --- a/api-daemon/provisioner/examples/script/2-ova.py +++ b/api-daemon/provisioner/examples/script/2-ova.py @@ -280,6 +280,7 @@ class VMBuilderScript(VMBuilder): from pvcapid.Daemon import config import daemon_lib.common as pvc_common import daemon_lib.ceph as pvc_ceph + import os # First loop: Create the destination disks print("Creating destination disk volumes") @@ -371,6 +372,10 @@ class VMBuilderScript(VMBuilder): here, be warned that doing so might cause loops. Do this only if you really need to. """ + # Run any imports first + from pvcapid.vmbuilder import open_zk + from pvcapid.Daemon import config + for volume in list(reversed(self.vm_data["volumes"])): src_volume_name = volume["volume_name"] src_volume = f"{volume['pool']}/{src_volume_name}"