From 49e78ccb47a13698a2c88b282829eb9c48ed09fe Mon Sep 17 00:00:00 2001 From: Diptanu Choudhury Date: Thu, 5 Jan 2017 15:15:43 -0800 Subject: [PATCH] Fixed merging consul config --- nomad/structs/config/consul.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nomad/structs/config/consul.go b/nomad/structs/config/consul.go index d20e5e419..030c47547 100644 --- a/nomad/structs/config/consul.go +++ b/nomad/structs/config/consul.go @@ -98,8 +98,8 @@ func (a *ConsulConfig) Merge(b *ConsulConfig) *ConsulConfig { if b.ClientServiceName != "" { result.ClientServiceName = b.ClientServiceName } - if b.AutoAdvertise { - result.AutoAdvertise = true + if !b.AutoAdvertise { + result.AutoAdvertise = false } if b.Addr != "" { result.Addr = b.Addr