Updated to bmclib/v2 and fix API querying issue

This commit is contained in:
David J. Allen 2023-08-28 10:57:32 -06:00
parent b6fe201f66
commit 25a885b18c
6 changed files with 29 additions and 42 deletions

View file

@ -47,6 +47,7 @@ func AddRedfishEndpoint(inventory []byte) error {
// Add redfish endpoint via POST `/hsm/v2/Inventory/RedfishEndpoints` endpoint
url := makeEndpointUrl("/Inventory/RedfishEndpoints")
res, body, _ := api.MakeRequest(url, "POST", inventory)
fmt.Println("smd url: ", url)
fmt.Println("res: ", res)
fmt.Println("body: ", string(body))
return nil