builder: raise an exception on compose failures
Instead of a normal task return with a result dictionary, raise an exception when the compose failed.
This commit is contained in:
parent
c70ec02fba
commit
f2f34a3b76
1 changed files with 3 additions and 0 deletions
|
|
@ -322,6 +322,9 @@ class OSBuildImage(BaseTaskHandler):
|
|||
self.logger.debug("Compose finished: %s", str(status))
|
||||
self.logger.info("Compose result: %s", status.status)
|
||||
|
||||
if not status.is_success:
|
||||
raise koji.BuildError(f"Compose failed (id: {cid})")
|
||||
|
||||
result = {
|
||||
"status": status.status,
|
||||
"composer": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue