mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
Fixed merging consul config
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user