Add missing imports

This commit is contained in:
Joshua Boniface 2022-10-19 13:07:34 -04:00
parent e550e39a5a
commit 41eccb9c7d
1 changed files with 5 additions and 0 deletions

View File

@ -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}"