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:
Brian C. Lane 2025-05-06 17:03:19 -07:00 committed by Tomáš Hozza
parent b33f86783f
commit 12dd0b0be4
2 changed files with 5 additions and 1 deletions

View file

@ -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 {