From a578fe859e5539c981bd9f59d8566995e8cf2b79 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Jul 14 2017 18:42:10 +0000 Subject: [PATCH 1/2] Fix the call to _printTaskInfo in handle_resubmit Signed-off-by: Patrick Uiterwijk --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 2a6a367..b09b920 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -788,7 +788,7 @@ def handle_resubmit(goptions, session, args): taskID = int(args[0]) if not options.quiet: print("Resubmitting the following task:") - _printTaskInfo(session, taskID, 0, goptions.topdir, False, True) + _printTaskInfo(session, taskID, goptions.topdir, 0, False, True) newID = session.resubmitTask(taskID) if not options.quiet: print("Resubmitted task %s as new task %s" % (taskID, newID)) From ce529971910f433c6931c8ebe24f0adcf588f4b2 Mon Sep 17 00:00:00 2001 From: Patrick Uiterwijk Date: Jul 14 2017 18:48:42 +0000 Subject: [PATCH 2/2] Fix the poll_interval access in handle_resubmit Signed-off-by: Patrick Uiterwijk --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index b09b920..3c769d5 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -797,7 +797,7 @@ def handle_resubmit(goptions, session, args): else: session.logout() return watch_tasks(session, [newID], quiet=options.quiet, - poll_interval=options.poll_interval) + poll_interval=goptions.poll_interval) def handle_call(goptions, session, args):