diff --git a/api-daemon/provisioner/examples/1-noinstall.py b/api-daemon/provisioner/examples/1-noinstall.py index 10c1631d..7ab04271 100644 --- a/api-daemon/provisioner/examples/1-noinstall.py +++ b/api-daemon/provisioner/examples/1-noinstall.py @@ -255,6 +255,9 @@ class VMBuilderScript(VMBuilder): block devices and map them to the host. """ + # Run any imports first + from pvcapid.vmbuilder import open_zk + # First loop: Create the disks, either by cloning (pvc_ceph.clone_volume), or by # new creation (pvc_ceph.add_volume). for volume in self.vm_data["volumes"]: diff --git a/api-daemon/provisioner/examples/2-debootstrap.py b/api-daemon/provisioner/examples/2-debootstrap.py index b5e07e06..e8d6ccc9 100644 --- a/api-daemon/provisioner/examples/2-debootstrap.py +++ b/api-daemon/provisioner/examples/2-debootstrap.py @@ -259,6 +259,9 @@ class VMBuilderScript(VMBuilder): block devices and map them to the host. """ + # Run any imports first + from pvcapid.vmbuilder import open_zk + # First loop: Create the disks, either by cloning (pvc_ceph.clone_volume), or by # new creation (pvc_ceph.add_volume). for volume in self.vm_data["volumes"]: