Add additional import for config

This commit is contained in:
Joshua Boniface 2022-10-05 17:38:16 -04:00
parent 16915ed507
commit cc7952c232
2 changed files with 14 additions and 0 deletions

View File

@ -257,6 +257,9 @@ class VMBuilderScript(VMBuilder):
# Run any imports first
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
# new creation (pvc_ceph.add_volume).
@ -397,6 +400,10 @@ class VMBuilderScript(VMBuilder):
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"
for volume in list(reversed(self.vm_data["volumes"])):

View File

@ -261,6 +261,9 @@ class VMBuilderScript(VMBuilder):
# Run any imports first
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
# new creation (pvc_ceph.add_volume).
@ -580,6 +583,10 @@ GRUB_DISABLE_LINUX_UUID=false
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"
for volume in list(reversed(self.vm_data["volumes"])):