update comment for when the fingerprinter setting health status

This commit is contained in:
Chelsea Holland Komlo
2018-04-10 16:53:00 -04:00
parent 46ec4633fe
commit a40750e596

View File

@@ -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,