cloudapi/v1: Adapt metadata handler to osbuild2 results
This commit is contained in:
parent
e32f1cd697
commit
e5aba6bce9
1 changed files with 1 additions and 1 deletions
|
|
@ -522,7 +522,7 @@ func (h *apiHandlers) ComposeMetadata(ctx echo.Context, id string) error {
|
|||
return echo.NewHTTPError(http.StatusNotFound, "Job %s not found: %s", id, err)
|
||||
}
|
||||
|
||||
if result.OSBuildOutput == nil || result.OSBuildOutput.Stages == nil {
|
||||
if result.OSBuildOutput == nil || len(result.OSBuildOutput.Log) == 0 {
|
||||
// no data to work with; parse error
|
||||
return echo.NewHTTPError(http.StatusInternalServerError, "Failed to read metadata for job %s", id)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue