Reconcile consul's address configuration section.

There were conflicting directives previously, both consul.addr and
consul.address were required to achieve the desired behavior.  The
documentation said `consul.address` was the canonical name for the
parameter, so consolidate configuration parameters to `consul.address`.
This commit is contained in:
Sean Chittenden
2016-05-26 13:26:08 -07:00
parent 7125b85744
commit 71dde1b584
2 changed files with 2 additions and 2 deletions

View File

@@ -598,7 +598,7 @@ func parseConsulConfig(result **config.ConsulConfig, list *ast.ObjectList) error
// Check for invalid keys
valid := []string{
"addr",
"address",
"auth",
"auto_register",
"ca_file",

View File

@@ -23,7 +23,7 @@ type ConsulConfig struct {
AutoRegister bool `mapstructure:"auto_register"`
// Addr is the address of the local Consul agent
Addr string `mapstructure:"addr"`
Addr string `mapstructure:"address"`
// Token is used to provide a per-request ACL token.This options overrides
// the agent's default token