mirror of
https://github.com/kemko/nomad.git
synced 2026-01-07 10:55:42 +03:00
Making the drivers fingerprint periodically if they are configured to do so
This commit is contained in:
@@ -666,6 +666,12 @@ func (c *Client) setupDrivers() error {
|
||||
if applies {
|
||||
avail = append(avail, name)
|
||||
}
|
||||
|
||||
p, period := d.Periodic()
|
||||
if p {
|
||||
go c.fingerprintPeriodic(name, d, period)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
c.logger.Printf("[DEBUG] client: available drivers %v", avail)
|
||||
|
||||
Reference in New Issue
Block a user