Explorar o código

Merge pull request #5116 from ajityagaty/typo_fix

etcdctlv3: Fix for typo in alarm command handling.
Gyu-Ho Lee %!s(int64=9) %!d(string=hai) anos
pai
achega
ea6a747fc1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      etcdctl/ctlv3/command/alarm_command.go

+ 1 - 1
etcdctl/ctlv3/command/alarm_command.go

@@ -69,7 +69,7 @@ func NewAlarmListCommand() *cobra.Command {
 // alarmListCommandFunc executes the "alarm list" command.
 func alarmListCommandFunc(cmd *cobra.Command, args []string) {
 	if len(args) != 0 {
-		ExitWithError(ExitBadArgs, fmt.Errorf("alarm disarm command accepts no arguments"))
+		ExitWithError(ExitBadArgs, fmt.Errorf("alarm list command accepts no arguments"))
 	}
 	ctx, cancel := commandCtx(cmd)
 	resp, err := mustClientFromCmd(cmd).AlarmList(ctx)