diff --git a/command/agent/config_parse.go b/command/agent/config_parse.go index ee291428f..cc3c1bcb7 100644 --- a/command/agent/config_parse.go +++ b/command/agent/config_parse.go @@ -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", diff --git a/nomad/structs/config/consul.go b/nomad/structs/config/consul.go index 3b0989c73..7727a3c0b 100644 --- a/nomad/structs/config/consul.go +++ b/nomad/structs/config/consul.go @@ -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