mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #5116 from ajityagaty/typo_fix
etcdctlv3: Fix for typo in alarm command handling.
This commit is contained in:
commit
ea6a747fc1
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user