Fix some pylint
This commit is contained in:
parent
febd8bf4e5
commit
5c1ed03b89
|
@ -182,7 +182,7 @@ class vmmConfig(object):
|
|||
try:
|
||||
# Check we can open the Python guestfs module.
|
||||
from guestfs import GuestFS # pylint: disable=F0401
|
||||
GuestFS(close_on_exit = False)
|
||||
GuestFS(close_on_exit=False)
|
||||
return True
|
||||
except:
|
||||
return False
|
||||
|
|
|
@ -163,7 +163,7 @@ class vmmInspection(vmmGObject):
|
|||
vm.get_name())
|
||||
return None
|
||||
|
||||
g = GuestFS(close_on_exit = False)
|
||||
g = GuestFS(close_on_exit=False)
|
||||
prettyvm = conn.get_uri() + ":" + vm.get_name()
|
||||
ignore = vmuuid
|
||||
|
||||
|
|
|
@ -35,6 +35,8 @@ def check_packagekit(parent, errbox, packages):
|
|||
Returns None when we determine nothing useful.
|
||||
Returns (success, did we just install libvirt) otherwise.
|
||||
"""
|
||||
ignore = errbox
|
||||
|
||||
if not packages:
|
||||
logging.debug("No PackageKit packages to search for.")
|
||||
return
|
||||
|
@ -55,8 +57,7 @@ def check_packagekit(parent, errbox, packages):
|
|||
except Exception, e:
|
||||
# PackageKit frontend should report an error for us, so just log
|
||||
# the actual error
|
||||
logging.debug("Error talking to PackageKit: %s" % str(e),
|
||||
exc_info=True)
|
||||
logging.debug("Error talking to PackageKit: %s", str(e), exc_info=True)
|
||||
return
|
||||
|
||||
return True
|
||||
|
|
Loading…
Reference in New Issue