Fix some pylint

This commit is contained in:
Cole Robinson 2014-01-25 15:52:34 -05:00
parent 4660b5d32e
commit ffa9bb77b3
2 changed files with 2 additions and 3 deletions

View File

@ -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",

View File

@ -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):