etcdctlv3: Fix for typo in alarm command handling.

This commit is contained in:
Ajit Yagaty 2016-04-17 19:31:39 -07:00
parent 9504df2917
commit 68dd22d93d

View File

@ -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)