mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
cloner: Drop redundant libvirt call
The disk should already have looked up the parent pool object
This commit is contained in:
parent
65b0331b72
commit
ec917e992a
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user