Fixed merging consul config

This commit is contained in:
Diptanu Choudhury
2017-01-05 15:15:43 -08:00
parent 3cc00a4682
commit 49e78ccb47

View File

@@ -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