From 7150649405df1653cb992d96af908c80a687ec4c Mon Sep 17 00:00:00 2001 From: Lon Hohberger Date: Oct 02 2020 15:53:38 +0000 Subject: Fix PR#2347 - make "not wait" work again Prior to PR#2347, koji would not wait for image and indirectionimage builds even if --wait was specified. After PR#2347, koji always waits, even when --wait is NOT specified. According to the CLI docs, "wait" should happen regardless of whether we've decided to run in the background, thus, checking this is superfluous. Signed-off-by: Lon Hohberger --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 7f64ac7..c20ef6c 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -5887,7 +5887,7 @@ def _build_image_indirection(options, task_opts, session, args): if not options.quiet: print("Created task: %d" % task_id) print("Task info: %s/taskinfo?taskID=%s" % (options.weburl, task_id)) - if task_opts.wait or (task_opts.wait is None and not _running_in_bg()): + if task_opts.wait: session.logout() return watch_tasks(session, [task_id], quiet=options.quiet)