mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Changed systems nil check to check count instead
This commit is contained in:
parent
472735fb9d
commit
0a3489f575
1 changed files with 1 additions and 1 deletions
|
|
@ -436,7 +436,7 @@ func CollectSystems(c *gofish.APIClient, q *QueryParams) ([]byte, error) {
|
|||
// /redfish/v1/Systems/Members
|
||||
// /redfish/v1/Systems/
|
||||
var temp []map[string]any
|
||||
if systems == nil {
|
||||
if len(systems) == 0 {
|
||||
url := baseRedfishUrl(q) + "/Systems"
|
||||
if q.Verbose {
|
||||
fmt.Printf("%s\n", url)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue