Unverified Commit 2b83f0a8 authored by Nick Ethier's avatar Nick Ethier
Browse files

client: fix missing driver info init

parent 9573fe9a
Branches unavailable
No related merge requests found
Showing with 4 additions and 1 deletion
+4 -1
......@@ -43,7 +43,10 @@ SEND_BATCH:
var driverChanged bool
c.batchNodeUpdates.batchDriverUpdates(func(driver string, info *structs.DriverInfo) {
if c.updateNodeFromDriverLocked(driver, info) {
c.config.Node.Drivers[driver].UpdateTime = time.Now()
c.config.Node.Drivers[driver] = info
if c.config.Node.Drivers[driver].UpdateTime.IsZero() {
c.config.Node.Drivers[driver].UpdateTime = time.Now()
}
driverChanged = true
}
})
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment