summaryrefslogtreecommitdiff
path: root/pkg/api/handlers/utils/pods.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/api/handlers/utils/pods.go')
-rw-r--r--pkg/api/handlers/utils/pods.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/utils/pods.go b/pkg/api/handlers/utils/pods.go
index 8276fb55e..54ebe2d29 100644
--- a/pkg/api/handlers/utils/pods.go
+++ b/pkg/api/handlers/utils/pods.go
@@ -45,7 +45,7 @@ func GetPods(w http.ResponseWriter, r *http.Request) ([]*entities.ListPodsReport
}
if len(pods) == 0 {
- return nil, nil
+ return []*entities.ListPodsReport{}, nil
}
lps := make([]*entities.ListPodsReport, 0, len(pods))