PR#2454: fix flake8 errors

Merges #2454
https://pagure.io/koji/pull-request/2454
This commit is contained in:
Tomas Kopecek 2020-08-25 13:06:00 +02:00
commit c05ff8b107
2 changed files with 4 additions and 3 deletions

View file

@ -873,7 +873,8 @@ class RepoManager(object):
return
elif len(self.tasks) + len(self.other_tasks) >= self.options.repo_tasks_limit:
self.logger.debug("Tracked tasks (%s): %s" % (len(self.tasks), list(self.tasks)))
self.logger.debug("Untracked tasks (%s): %s" % (len(self.other_tasks), list(self.other_tasks)))
self.logger.debug("Untracked tasks (%s): %s" % (len(self.other_tasks),
list(self.other_tasks)))
self.logger.info("Repo task limit reached")
return
tagname = tag['taginfo']['name']

View file

@ -511,8 +511,8 @@ class VMExecTask(BaseTaskHandler):
if opts.get('static_mac'):
orig_mac = self.macAddr(orig_vm)
#doesn't work anymore, needs to place mac address inside the xml
#cmd += ["--mac", orig_mac]
# doesn't work anymore, needs to place mac address inside the xml
# cmd += ["--mac", orig_mac]
opts['static_mac'] = orig_mac
proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,