mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
More pylint.
This commit is contained in:
parent
4af71fc07e
commit
a39cad0f8b
@ -1662,9 +1662,9 @@ class vmmDetails(gobject.GObject):
|
|||||||
if vol:
|
if vol:
|
||||||
size = vol.get_pretty_capacity()
|
size = vol.get_pretty_capacity()
|
||||||
elif not self.conn.is_remote():
|
elif not self.conn.is_remote():
|
||||||
ignore, bytes = virtinst.VirtualDisk.stat_local_path(path)
|
ignore, val = virtinst.VirtualDisk.stat_local_path(path)
|
||||||
if bytes != 0:
|
if val != 0:
|
||||||
size = prettyify_bytes(bytes)
|
size = prettyify_bytes(val)
|
||||||
|
|
||||||
is_cdrom = (devtype == virtinst.VirtualDisk.DEVICE_CDROM)
|
is_cdrom = (devtype == virtinst.VirtualDisk.DEVICE_CDROM)
|
||||||
is_floppy = (devtype == virtinst.VirtualDisk.DEVICE_FLOPPY)
|
is_floppy = (devtype == virtinst.VirtualDisk.DEVICE_FLOPPY)
|
||||||
|
Loading…
Reference in New Issue
Block a user