Only auto-join clients if client_auto_join
is true
This commit is contained in:
parent
b04838f0e2
commit
952b6ce7b5
|
@ -1349,7 +1349,9 @@ func (c *Client) setupConsulSyncer() error {
|
|||
|
||||
return nil
|
||||
}
|
||||
c.consulSyncer.AddPeriodicHandler("Nomad Client Fallback Server Handler", bootstrapFn)
|
||||
if c.config.ConsulConfig.ClientAutoJoin {
|
||||
c.consulSyncer.AddPeriodicHandler("Nomad Client Fallback Server Handler", bootstrapFn)
|
||||
}
|
||||
|
||||
consulServicesReaperFn := func() error {
|
||||
const estInitialExecutorDomains = 8
|
||||
|
|
Loading…
Reference in a new issue