mirror of
https://github.com/kemko/nomad.git
synced 2026-01-03 17:05:43 +03:00
update comment for when the fingerprinter setting health status
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user