Changed systems nil check to check count instead

This commit is contained in:
David Allen 2024-05-16 15:49:56 -06:00
parent 472735fb9d
commit 0a3489f575
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -436,7 +436,7 @@ func CollectSystems(c *gofish.APIClient, q *QueryParams) ([]byte, error) {
// /redfish/v1/Systems/Members // /redfish/v1/Systems/Members
// /redfish/v1/Systems/ // /redfish/v1/Systems/
var temp []map[string]any var temp []map[string]any
if systems == nil { if len(systems) == 0 {
url := baseRedfishUrl(q) + "/Systems" url := baseRedfishUrl(q) + "/Systems"
if q.Verbose { if q.Verbose {
fmt.Printf("%s\n", url) fmt.Printf("%s\n", url)