Merge pull request #5116 from ajityagaty/typo_fix

etcdctlv3: Fix for typo in alarm command handling.
This commit is contained in:
Gyu-Ho Lee 2016-04-17 20:30:22 -07:00
commit ea6a747fc1

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)