Skip to content

Commit

Permalink
Wording
Browse files Browse the repository at this point in the history
`ResetType` isn't very human-friendly for "power on" and "power off"
sub-commands.

Rename this to something more general, conveying that a command has been
issued or requested from the node.
  • Loading branch information
rustydb committed Jan 20, 2024
1 parent 52fce74 commit c430ed1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cmd/cli/chassis/power/power.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,9 @@ func NewCommand() *cobra.Command {

// StateChange represents a change in power states.
type StateChange struct {
PreviousPowerState redfish.PowerState `json:"previousPowerState,omitempty"`
ResetType redfish.ResetType `json:"resetType,omitempty"`
Error error `json:"error,omitempty"`
PreviousPowerState redfish.PowerState `json:"previousPowerState,omitempty"`
RequestedPowerState redfish.ResetType `json:"requestedPowerState,omitempty"`
Error error `json:"error,omitempty"`
}

// State represents a single power state.
Expand Down

0 comments on commit c430ed1

Please sign in to comment.