mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-24 02:04:13 +03:00
storage: Fix some pylint on libvirt without REFLINK flag
This commit is contained in:
parent
271e248a41
commit
6e2e43b178
@ -762,7 +762,8 @@ class StorageVolume(_StorageObject):
|
||||
createflags |= libvirt.VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA
|
||||
|
||||
if self.reflink:
|
||||
cloneflags |= libvirt.VIR_STORAGE_VOL_CREATE_REFLINK
|
||||
cloneflags |= getattr(libvirt,
|
||||
"VIR_STORAGE_VOL_CREATE_REFLINK", 1)
|
||||
|
||||
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user