mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
Added print for URL when system is NIL
This commit is contained in:
parent
1aab3796be
commit
978790f081
1 changed files with 3 additions and 0 deletions
|
|
@ -442,6 +442,9 @@ func CollectSystems(c *gofish.APIClient, q *QueryParams) ([]byte, error) {
|
||||||
var temp []map[string]any
|
var temp []map[string]any
|
||||||
if systems == nil {
|
if systems == nil {
|
||||||
url := baseRedfishUrl(q) + "/Systems"
|
url := baseRedfishUrl(q) + "/Systems"
|
||||||
|
if q.Verbose {
|
||||||
|
fmt.Printf("%s\n", url)
|
||||||
|
}
|
||||||
res, body, err := util.MakeRequest(nil, url, "GET", nil, nil)
|
res, body, err := util.MakeRequest(nil, url, "GET", nil, nil)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("failed to make request: %v", err)
|
return nil, fmt.Errorf("failed to make request: %v", err)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue