mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
Minor changes to MakeRequest function
This commit is contained in:
parent
efda3d8aa7
commit
f1db827c61
4 changed files with 21 additions and 12 deletions
|
|
@ -139,7 +139,7 @@ func UpdateFirmwareRemote(q *UpdateParams) error {
|
|||
if err != nil {
|
||||
return fmt.Errorf("could not marshal data: %v", err)
|
||||
}
|
||||
res, body, err := util.MakeRequest(url, "POST", data, headers)
|
||||
res, body, err := util.MakeRequest(nil, url, "POST", data, headers)
|
||||
if err != nil {
|
||||
return fmt.Errorf("something went wrong: %v", err)
|
||||
} else if res == nil {
|
||||
|
|
@ -153,7 +153,7 @@ func UpdateFirmwareRemote(q *UpdateParams) error {
|
|||
|
||||
func GetUpdateStatus(q *UpdateParams) error {
|
||||
url := baseRedfishUrl(&q.QueryParams) + "/redfish/v1/UpdateService"
|
||||
res, body, err := util.MakeRequest(url, "GET", nil, nil)
|
||||
res, body, err := util.MakeRequest(nil, url, "GET", nil, nil)
|
||||
if err != nil {
|
||||
return fmt.Errorf("something went wrong: %v", err)
|
||||
} else if res == nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue