api/koji: invert the compose status condition
This is just easier to grasp. Signed-off-by: Ondřej Budai <ondrej@budai.cz>
This commit is contained in:
parent
00cd4cb346
commit
3d465a4778
1 changed files with 3 additions and 3 deletions
|
|
@ -247,11 +247,11 @@ func composeStatusFromJobStatus(js *worker.JobStatus, initResult *worker.KojiIni
|
|||
}
|
||||
}
|
||||
|
||||
if result.KojiError == "" {
|
||||
return "success"
|
||||
if result.KojiError != "" {
|
||||
return "failure"
|
||||
}
|
||||
|
||||
return "failure"
|
||||
return "success"
|
||||
}
|
||||
|
||||
func imageStatusFromJobStatus(js *worker.JobStatus, initResult *worker.KojiInitJobResult, buildResult *worker.OSBuildKojiJobResult) string {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue