Merge "Fix redfish reboot logic"
This commit is contained in:
commit
d9e18f78ff
@ -89,8 +89,8 @@ func RebootSystem(ctx context.Context, api redfishApi.RedfishAPI, systemId strin
|
|||||||
resetReq := redfishClient.ResetRequestBody{}
|
resetReq := redfishClient.ResetRequestBody{}
|
||||||
resetReq.ResetType = redfishClient.RESETTYPE_FORCE_OFF
|
resetReq.ResetType = redfishClient.RESETTYPE_FORCE_OFF
|
||||||
_, httpResp, err := api.ResetSystem(ctx, systemId, resetReq)
|
_, httpResp, err := api.ResetSystem(ctx, systemId, resetReq)
|
||||||
if err != nil {
|
if err = ScreenRedfishError(httpResp, err); err != nil {
|
||||||
return ScreenRedfishError(httpResp, err)
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
time.Sleep(SystemRebootDelay)
|
time.Sleep(SystemRebootDelay)
|
||||||
|
Loading…
Reference in New Issue
Block a user