redfish: use consistent case in method name

This commit is contained in:
Joel Rebello 2022-11-29 15:57:18 +01:00
parent 816e98350c
commit 8448345e21
No known key found for this signature in database
GPG Key ID: EDB938BE882F8078
2 changed files with 3 additions and 3 deletions

View File

@ -11,8 +11,8 @@ import (
rf "github.com/stmcginnis/gofish/redfish"
)
// BmcReset powercycles the BMC.
func (c *Client) BmcReset(ctx context.Context, resetType string) (ok bool, err error) {
// BMCReset powercycles the BMC.
func (c *Client) BMCReset(ctx context.Context, resetType string) (ok bool, err error) {
if err := c.SessionActive(); err != nil {
return false, errors.Wrap(bmclibErrs.ErrNotAuthenticated, err.Error())
}

View File

@ -108,7 +108,7 @@ func (c *Conn) DeviceVendorModel(ctx context.Context) (vendor, model string, err
// BmcReset power cycles the BMC
func (c *Conn) BmcReset(ctx context.Context, resetType string) (ok bool, err error) {
return c.redfishwrapper.BmcReset(ctx, resetType)
return c.redfishwrapper.BMCReset(ctx, resetType)
}
// PowerStateGet gets the power state of a BMC machine