mirror of
https://github.com/kemko/nomad.git
synced 2026-01-06 02:15:43 +03:00
Client not syncing services with consul until fingerprinting succeeds
This commit is contained in:
@@ -1184,6 +1184,10 @@ func (c *Client) syncConsul() {
|
||||
for {
|
||||
select {
|
||||
case <-sync.C:
|
||||
// Give up pruning services if we can't fingerprint Consul
|
||||
if _, ok := c.config.Node.Attributes["consul.server"]; !ok {
|
||||
continue
|
||||
}
|
||||
services := make(map[string]struct{})
|
||||
// Get the existing allocs
|
||||
c.allocLock.RLock()
|
||||
|
||||
Reference in New Issue
Block a user