From 928d2278be143954daf41a6c9f7ec7dff81ddc49 Mon Sep 17 00:00:00 2001 From: Christian Kellner Date: Thu, 10 Sep 2020 13:33:42 +0200 Subject: [PATCH] plugin/cli: return task result when waiting When waiting for the task, return the result from the `watch_task` call, which will indicate if the task was successful. This will then be reflected in the error code of the koji call. --- plugins/cli/osbuild.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/cli/osbuild.py b/plugins/cli/osbuild.py index ddf99f7..5893502 100755 --- a/plugins/cli/osbuild.py +++ b/plugins/cli/osbuild.py @@ -103,3 +103,4 @@ def handle_osbuild_image(options, session, argv): if res == 0: result = session.getTaskResult(task_id) print(result) + return res