mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-24 02:04:13 +03:00
Fix some pylint
This commit is contained in:
parent
4660b5d32e
commit
ffa9bb77b3
@ -123,7 +123,7 @@ class vmmFSDetails(vmmGObjectUI):
|
||||
VirtualFilesystem.DRIVER_DEFAULT])
|
||||
else:
|
||||
simple_store_set("fs-driver-combo", [VirtualFilesystem.DRIVER_DEFAULT])
|
||||
simple_store_set("fs-format-combo", StorageVolume.ALL_FORMATS, capitalize = False),
|
||||
simple_store_set("fs-format-combo", StorageVolume.ALL_FORMATS, capitalize=False)
|
||||
simple_store_set("fs-wrpolicy-combo", VirtualFilesystem.WRPOLICIES)
|
||||
self.show_pair_combo("fs-type", self.conn.is_openvz() or self.conn.is_lxc())
|
||||
self.show_check_button("fs-readonly",
|
||||
|
@ -460,7 +460,6 @@ class StorageVolume(_StorageObject):
|
||||
"""
|
||||
Base class for building and installing libvirt storage volume xml
|
||||
"""
|
||||
|
||||
ALL_FORMATS = ["raw", "bochs", "cloop", "cow", "dmg", "iso", "qcow",
|
||||
"qcow2", "qed", "vmdk", "vpc", "fat", "vhd", "vdi"]
|
||||
|
||||
@ -612,7 +611,7 @@ class StorageVolume(_StorageObject):
|
||||
|
||||
def list_formats(self):
|
||||
if self.file_type == self.TYPE_FILE:
|
||||
return ALL_FORMATS
|
||||
return self.ALL_FORMATS
|
||||
return []
|
||||
|
||||
def list_create_formats(self):
|
||||
|
Loading…
x
Reference in New Issue
Block a user