SupportBundles: Fix list response when we don't have any bundles yet (#61619)
* SupportBundles: Return empty slice instead of nil when there are no support bundles
This commit is contained in:
@@ -101,7 +101,7 @@ func (s *store) List() ([]supportbundles.Bundle, error) {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
var res []supportbundles.Bundle
|
||||
res := make([]supportbundles.Bundle, 0)
|
||||
for _, items := range data {
|
||||
for _, s := range items {
|
||||
var b supportbundles.Bundle
|
||||
|
||||
Reference in New Issue
Block a user