Only auto-join clients if client_auto_join is true

This commit is contained in:
Sean Chittenden 2016-06-16 14:47:21 -07:00
parent b04838f0e2
commit 952b6ce7b5
No known key found for this signature in database
GPG key ID: 4EBC9DC16C2E5E16

View file

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