From a40750e596cdf6fb4b591d1c357d760d6c0bbb43 Mon Sep 17 00:00:00 2001 From: Chelsea Holland Komlo Date: Tue, 10 Apr 2018 16:53:00 -0400 Subject: [PATCH] update comment for when the fingerprinter setting health status --- client/fingerprint_manager.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/client/fingerprint_manager.go b/client/fingerprint_manager.go index 7a0dfcd00..37d77ecc3 100644 --- a/client/fingerprint_manager.go +++ b/client/fingerprint_manager.go @@ -371,8 +371,9 @@ func (fm *FingerprintManager) fingerprintDriver(name string, f fingerprint.Finge } fm.nodeLock.Unlock() - // If the driver is undetected, change the health status to unhealthy - // immediately. + // If either 1) the driver is undetected or 2) if the driver does not have + // periodic health checks enabled, set the health status to the match that + // of the fingerprinter if !hasPeriodicHealthCheck || !response.Detected && driverExists && driverIsHealthy { healthInfo := &structs.DriverInfo{ Healthy: response.Detected,