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.
This commit is contained in:
parent
1db41a067f
commit
928d2278be
1 changed files with 1 additions and 0 deletions
|
|
@ -103,3 +103,4 @@ def handle_osbuild_image(options, session, argv):
|
|||
if res == 0:
|
||||
result = session.getTaskResult(task_id)
|
||||
print(result)
|
||||
return res
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue