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

This commit is contained in:
Sean Chittenden 2017-02-26 12:24:03 -08:00
parent f5fe659497
commit cbbbf5ee39
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
1 changed files with 4 additions and 0 deletions

View File

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