From bfeb09983befa337a3b2ebbafb7567913773e40b Mon Sep 17 00:00:00 2001 From: Kyle Havlovitz Date: Tue, 23 Jan 2018 12:52:17 -0800 Subject: [PATCH] Reset clusterHealth when autopilot starts --- agent/consul/autopilot/autopilot.go | 1 + 1 file changed, 1 insertion(+) diff --git a/agent/consul/autopilot/autopilot.go b/agent/consul/autopilot/autopilot.go index a23412fc2f..d6efd11e7d 100644 --- a/agent/consul/autopilot/autopilot.go +++ b/agent/consul/autopilot/autopilot.go @@ -64,6 +64,7 @@ func NewAutopilot(logger *log.Logger, delegate Delegate, interval, healthInterva func (a *Autopilot) Start() { a.shutdownCh = make(chan struct{}) a.waitGroup = sync.WaitGroup{} + a.clusterHealth = OperatorHealthReply{} a.waitGroup.Add(2) go a.run()