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