Fix bad import

This commit is contained in:
Joshua Boniface 2023-08-17 22:45:50 -04:00
parent d769071799
commit ae7950e9b7
1 changed files with 2 additions and 2 deletions

View File

@ -1017,13 +1017,13 @@ def vm_volumes_add(config, vm, volume, disk_id, bus, disk_type, live, restart):
from lxml.objectify import fromstring from lxml.objectify import fromstring
from lxml.etree import tostring from lxml.etree import tostring
from copy import deepcopy from copy import deepcopy
import pvc.lib.ceph as pvc_ceph import pvc.lib.storage as pvc_storage
if disk_type == "rbd": if disk_type == "rbd":
# Verify that the provided volume is valid # Verify that the provided volume is valid
vpool = volume.split("/")[0] vpool = volume.split("/")[0]
vname = volume.split("/")[1] vname = volume.split("/")[1]
retcode, retdata = pvc_ceph.ceph_volume_info(config, vpool, vname) retcode, retdata = pvc_storage.ceph_volume_info(config, vpool, vname)
if not retcode: if not retcode:
return False, "Volume {} is not present in the cluster.".format(volume) return False, "Volume {} is not present in the cluster.".format(volume)