Skip to content

Commit

Permalink
Allowed for bedrock-only prometheus exporter config
Browse files Browse the repository at this point in the history
  • Loading branch information
itzg committed Mar 21, 2020
1 parent dc1663b commit 60f9ca6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prom_cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c *exportPrometheusCmd) SetFlags(f *flag.FlagSet) {
}

func (c *exportPrometheusCmd) Execute(_ context.Context, _ *flag.FlagSet, args ...interface{}) subcommands.ExitStatus {
if len(c.Servers) == 0 {
if (len(c.Servers) + len(c.BedrockServers)) == 0 {
printUsageError("requires at least one server")
return subcommands.ExitUsageError
}
Expand Down

0 comments on commit 60f9ca6

Please sign in to comment.