mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 17:35:43 +03:00
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:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user