mirror of
https://github.com/kemko/nomad.git
synced 2026-01-04 01:15:43 +03:00
Reading consul attr from copy of node attributes
This commit is contained in:
@@ -1192,7 +1192,11 @@ func (c *Client) syncConsul() {
|
||||
select {
|
||||
case <-sync.C:
|
||||
// Give up pruning services if we can't fingerprint Consul
|
||||
if _, ok := c.config.Node.Attributes["consul.server"]; !ok {
|
||||
|
||||
c.configLock.RLock()
|
||||
_, ok := c.configCopy.Node.Attributes["consul.server"]
|
||||
c.configLock.RUnlock()
|
||||
if !ok {
|
||||
continue
|
||||
}
|
||||
services := make(map[string]struct{})
|
||||
|
||||
1
vendor/github.com/logrus
generated
vendored
Submodule
1
vendor/github.com/logrus
generated
vendored
Submodule
Submodule vendor/github.com/logrus added at 4b6ea7319e
Reference in New Issue
Block a user