diff --git a/grpc/oob/machine/machine.go b/grpc/oob/machine/machine.go index fd8156e..4f47206 100644 --- a/grpc/oob/machine/machine.go +++ b/grpc/oob/machine/machine.go @@ -309,7 +309,7 @@ func (m Action) PowerSet(ctx context.Context, action string) (result string, err // if powered on, do cycle // if powered off, do power on if strings.Contains(strings.ToLower(currentPowerState), "off") { - pwrAction = v1.PowerAction_POWER_ACTION_ON.String() + pwrAction = "on" } } ok, err = client.SetPowerState(ctx, pwrAction)