diff --git a/client/client.go b/client/client.go index 3c1da6a42..79f46edb9 100644 --- a/client/client.go +++ b/client/client.go @@ -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()