Fix some pylint

This commit is contained in:
Cole Robinson 2016-03-24 15:59:29 -04:00
parent f9297f3bc3
commit d3b9fcf3de
2 changed files with 2 additions and 1 deletions

View File

@ -522,7 +522,7 @@ def _show_nographics_warnings(options, guest):
return
for args in options.extra_args:
if console_type in (options.extra_args or ""):
if console_type in (args or ""):
return
logging.warn(_("Did not find '%(console_string)s' in --extra-args, "

View File

@ -639,6 +639,7 @@ class Distro(object):
def _kernelFetchHelper(self, guest, kernelpath, initrdpath):
# Simple helper for fetching kernel + initrd and performing
# cleanup if necessary
ignore = guest
kernel = self.fetcher.acquireFile(kernelpath)
args = ''