fix coredump, register default cluster name

This commit is contained in:
2026-05-11 10:21:43 +02:00
parent 38ed9de0b4
commit 3bd26fde7a
2 changed files with 13 additions and 6 deletions

View File

@@ -194,6 +194,12 @@ func ClusterSettingsSet(conf *cfg.Config) *cli.Command {
},
Action: func(ctx context.Context, cmd *cli.Command) error {
args := cmd.Args()
if args.Len() == 0 {
return errors.New("at least one setting must be specified (format: setting:value)")
}
if err := es.ClusterSettingsSet(conf, cmd.Args()); err != nil {
return err
}