Skip to content

Commit

Permalink
Merge pull request #2088 from ploubser/#2087
Browse files Browse the repository at this point in the history
(#2087) Exclude `broker server check consumer` command when using system user
  • Loading branch information
ripienaar authored Oct 18, 2023
2 parents 71ae87b + 7f045eb commit 21bdb6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/broker.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (b *brokerCommand) prepareNatsCli(pc *fisk.ParseContext, opts *natscli.Opti
natscli.SetContext(ctx)
natscli.SetVersion(build.Version)

if strings.HasPrefix(cmd, "broker server") && !util.HasPrefix(cmd, "broker server check stream", "broker server check kv", "broker server check jetstream") {
if strings.HasPrefix(cmd, "broker server") && !util.HasPrefix(cmd, "broker server check stream", "broker server check kv", "broker server check jetstream", "broker server check consumer") {
if cfg.Choria.NetworkSystemUsername == "" || cfg.Choria.NetworkSystemPassword == "" {
return fmt.Errorf("the %q command needs system username and password set using plugin.choria.network.system.*", cmd)
}
Expand Down

0 comments on commit 21bdb6e

Please sign in to comment.