Bläddra i källkod

Merge pull request #5116 from ajityagaty/typo_fix

etcdctlv3: Fix for typo in alarm command handling.
Gyu-Ho Lee 9 år sedan
förälder
incheckning
ea6a747fc1
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)