Merge pull request #1298 from hashicorp/b-auto-join
Only auto-join clients if `client_auto_join` is true
This commit is contained in:
commit
0420c29f3b
|
@ -1349,7 +1349,9 @@ func (c *Client) setupConsulSyncer() error {
|
|||
|
||||
return nil
|
||||
}
|
||||
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