mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
Fix some pylint.
This commit is contained in:
parent
6be4684138
commit
882bb0dd0a
@ -537,7 +537,7 @@ class vmmAddHardware(gobject.GObject):
|
||||
path=self.get_config_disk_image(),
|
||||
readOnly=True)
|
||||
return int(d.size * 1024) or None
|
||||
except Exception, e:
|
||||
except:
|
||||
return None
|
||||
|
||||
def get_config_disk_size(self):
|
||||
|
@ -2010,7 +2010,7 @@ class vmmDomainVirtinst(vmmDomainBase):
|
||||
self._backend.autostart = bool(val)
|
||||
self.emit("config-changed")
|
||||
|
||||
def attach_device(self, devobj):
|
||||
def attach_device(self, devobj, devxml=None):
|
||||
return
|
||||
def detach_device(self, devtype, dev_id_info):
|
||||
return
|
||||
|
@ -98,7 +98,7 @@ class vmmInterface(gobject.GObject):
|
||||
if itype == Interface.Interface.INTERFACE_TYPE_VLAN:
|
||||
return "VLAN"
|
||||
elif itype:
|
||||
return itype.capitalize()
|
||||
return str(itype).capitalize()
|
||||
else:
|
||||
return "Interface"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user