Skip to content

Commit a296bfa

Browse files
kahirokunnjoaquimrocha
authored andcommitted
backend: helm: Fix list releases returning null
Signed-off-by: kahirokunn <okinakahiro@gmail.com>
1 parent 5a020aa commit a296bfa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

backend/pkg/helm/release.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,12 @@ func getReleases(req ListReleaseRequest, config *action.Configuration) ([]*relea
127127
listClient.Short = true
128128
listClient.SetStateMask()
129129

130-
return listClient.Run()
130+
releases, err := listClient.Run()
131+
if releases == nil {
132+
releases = []*release.Release{}
133+
}
134+
135+
return releases, err
131136
}
132137

133138
func (h *Handler) ListRelease(clientConfig clientcmd.ClientConfig, w http.ResponseWriter, r *http.Request) {

0 commit comments

Comments
 (0)