Follow the lead in 6fc901a8f3 and set the default `DisplayName` to `Consul`

pull/2776/head
Sean Chittenden 8 years ago
parent f5fe659497
commit cbbbf5ee39
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16

@ -1018,6 +1018,10 @@ func (c *Command) Run(args []string) int {
cfg.CheckManager.Broker.ID = config.Telemetry.CirconusBrokerID cfg.CheckManager.Broker.ID = config.Telemetry.CirconusBrokerID
cfg.CheckManager.Broker.SelectTag = config.Telemetry.CirconusBrokerSelectTag cfg.CheckManager.Broker.SelectTag = config.Telemetry.CirconusBrokerSelectTag
if cfg.CheckManager.Check.DisplayName == "" {
cfg.CheckManager.Check.DisplayName = "Consul"
}
if cfg.CheckManager.API.TokenApp == "" { if cfg.CheckManager.API.TokenApp == "" {
cfg.CheckManager.API.TokenApp = "consul" cfg.CheckManager.API.TokenApp = "consul"
} }

Loading…
Cancel
Save