From 5ea5424609eb2a38ab6763977615a541450d00e5 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Aug 29 2016 19:22:11 +0000 Subject: Merge branch 'misli-cli-download-logs-nvr' Pull request from github https://github.com/koji-project/koji/pull/2 --- 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):