mirror of
https://github.com/bmc-toolbox/bmclib.git
synced 2025-06-03 05:14:43 +00:00
redfish: use consistent case in method name
This commit is contained in:
parent
816e98350c
commit
8448345e21
@ -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())
|
||||
}
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user