Add additional import for config
This commit is contained in:
parent
16915ed507
commit
cc7952c232
|
@ -257,6 +257,9 @@ class VMBuilderScript(VMBuilder):
|
||||||
|
|
||||||
# Run any imports first
|
# Run any imports first
|
||||||
from pvcapid.vmbuilder import open_zk
|
from pvcapid.vmbuilder import open_zk
|
||||||
|
from pvcapid.Daemon import config
|
||||||
|
import daemon_lib.common as pvc_common
|
||||||
|
import daemon_lib.ceph as pvc_ceph
|
||||||
|
|
||||||
# First loop: Create the disks, either by cloning (pvc_ceph.clone_volume), or by
|
# First loop: Create the disks, either by cloning (pvc_ceph.clone_volume), or by
|
||||||
# new creation (pvc_ceph.add_volume).
|
# new creation (pvc_ceph.add_volume).
|
||||||
|
@ -397,6 +400,10 @@ class VMBuilderScript(VMBuilder):
|
||||||
need cleanup before teardown of the overlay chroot environment.
|
need cleanup before teardown of the overlay chroot environment.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# Run any imports first
|
||||||
|
import daemon_lib.common as pvc_common
|
||||||
|
import daemon_lib.ceph as pvc_ceph
|
||||||
|
|
||||||
temp_dir = "/tmp/target"
|
temp_dir = "/tmp/target"
|
||||||
|
|
||||||
for volume in list(reversed(self.vm_data["volumes"])):
|
for volume in list(reversed(self.vm_data["volumes"])):
|
||||||
|
|
|
@ -261,6 +261,9 @@ class VMBuilderScript(VMBuilder):
|
||||||
|
|
||||||
# Run any imports first
|
# Run any imports first
|
||||||
from pvcapid.vmbuilder import open_zk
|
from pvcapid.vmbuilder import open_zk
|
||||||
|
from pvcapid.Daemon import config
|
||||||
|
import daemon_lib.common as pvc_common
|
||||||
|
import daemon_lib.ceph as pvc_ceph
|
||||||
|
|
||||||
# First loop: Create the disks, either by cloning (pvc_ceph.clone_volume), or by
|
# First loop: Create the disks, either by cloning (pvc_ceph.clone_volume), or by
|
||||||
# new creation (pvc_ceph.add_volume).
|
# new creation (pvc_ceph.add_volume).
|
||||||
|
@ -580,6 +583,10 @@ GRUB_DISABLE_LINUX_UUID=false
|
||||||
need cleanup before teardown of the overlay chroot environment.
|
need cleanup before teardown of the overlay chroot environment.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
# Run any imports first
|
||||||
|
import daemon_lib.common as pvc_common
|
||||||
|
import daemon_lib.ceph as pvc_ceph
|
||||||
|
|
||||||
temp_dir = "/tmp/target"
|
temp_dir = "/tmp/target"
|
||||||
|
|
||||||
for volume in list(reversed(self.vm_data["volumes"])):
|
for volume in list(reversed(self.vm_data["volumes"])):
|
||||||
|
|
Loading…
Reference in New Issue