From ff52d4e19e8c2dbeb4fc8d8b0b090167d8259aa3 Mon Sep 17 00:00:00 2001 From: Jakub Dorňák Date: Aug 29 2016 18:58:33 +0000 Subject: cli: fixed download-logs with nvr --- diff --git a/cli/koji b/cli/koji index 13f39f8..9cfae79 100755 --- a/cli/koji +++ b/cli/koji @@ -6559,15 +6559,15 @@ def anon_handle_download_logs(options, session, args): if binfo is None: error(_("There is no build with n-v-r: %s" % arg)) assert binfo['task_id'], binfo - arg = binfo['task_id'] - sys.stdout.write("Using task ID: %s\n" % arg) + task_id = binfo['task_id'] + sys.stdout.write("Using task ID: %s\n" % task_id) else: try: task_id = int(arg) except ValueError: error(_("Task id must be number: %r") % task_id) continue - save_logs(task_id, suboptions.match, suboptions.dir, suboptions.recurse) + save_logs(task_id, suboptions.match, suboptions.dir, suboptions.recurse) def anon_handle_download_task(options, session, args):