cloner: Drop redundant libvirt call

The disk should already have looked up the parent pool object
This commit is contained in:
Cole Robinson 2017-07-18 16:21:41 -04:00
parent 65b0331b72
commit ec917e992a

View File

@ -342,7 +342,7 @@ class Cloner(object):
# replace vol_install with a CloneVolume instance, otherwise
# simply set input_vol on the dest vol_install
if (clone_vol_install.pool.name() ==
orig_disk.get_vol_object().storagePoolLookupByVolume().name()):
orig_disk.get_parent_pool().name()):
vol_install = StorageVolume(self.conn)
vol_install.input_vol = orig_disk.get_vol_object()
vol_install.sync_input_vol()