mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-08-09 04:28:17 -05:00
Fix pylint with latest pylint version
Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
@@ -926,7 +926,7 @@ class vmmAddHardware(vmmGObjectUI):
|
||||
mod_list.append("tpm-spapr")
|
||||
else:
|
||||
mod_list.append("tpm-tis")
|
||||
if tpmversion == None or tpmversion != '1.2':
|
||||
if tpmversion != '1.2':
|
||||
mod_list.append("tpm-crb")
|
||||
mod_list.sort()
|
||||
return mod_list
|
||||
|
||||
@@ -273,7 +273,7 @@ class vmmStoragePool(vmmLibvirtObject):
|
||||
keymap = dict((o.get_connkey(), o) for o in self._volumes or [])
|
||||
def cb(obj, key):
|
||||
return vmmStorageVolume(self.conn, obj, key)
|
||||
(ignore, ignore, allvols) = pollhelpers.fetch_volumes(
|
||||
(dummy1, dummy2, allvols) = pollhelpers.fetch_volumes(
|
||||
self.conn.get_backend(), self.get_backend(), keymap, cb)
|
||||
self._volumes = allvols
|
||||
|
||||
|
||||
Reference in New Issue
Block a user