cloudapi: Fix listing composes with empty result
It was returning a null body instead of an empty list. Related: RHEL-60120
This commit is contained in:
parent
b33f86783f
commit
12dd0b0be4
2 changed files with 5 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ func (h *apiHandlers) GetComposeList(ctx echo.Context) error {
|
|||
}
|
||||
|
||||
// Gather up the details of each job
|
||||
var stats []ComposeStatus
|
||||
stats := []ComposeStatus{}
|
||||
for _, jid := range jobs {
|
||||
s, err := h.getJobIDComposeStatus(jid)
|
||||
if err != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue