Added print for URL when system is NIL

This commit is contained in:
David Allen 2024-05-16 14:48:38 -06:00
parent 1aab3796be
commit 978790f081
No known key found for this signature in database
GPG key ID: 717C593FF60A2ACC

View file

@ -442,6 +442,9 @@ func CollectSystems(c *gofish.APIClient, q *QueryParams) ([]byte, error) {
var temp []map[string]any
if systems == nil {
url := baseRedfishUrl(q) + "/Systems"
if q.Verbose {
fmt.Printf("%s\n", url)
}
res, body, err := util.MakeRequest(nil, url, "GET", nil, nil)
if err != nil {
return nil, fmt.Errorf("failed to make request: %v", err)