Skip to content

Commit

Permalink
Backport of fix: batchFirstFingerprints does not update device on nod…
Browse files Browse the repository at this point in the history
…e after v1.3.5 into release/1.2.x (#15131)

This pull request was automerged via backport-assistant
  • Loading branch information
hc-github-team-nomad-core authored Nov 3, 2022
1 parent 34957e5 commit 3e22e32
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/15125.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
device: Fixed a bug where device plugins would not fingerprint on startup
```
1 change: 1 addition & 0 deletions client/node_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ SEND_BATCH:
var devicesChanged bool
c.batchNodeUpdates.batchDevicesUpdates(func(devices []*structs.NodeDeviceResource) {
if c.updateNodeFromDevicesLocked(devices) {
newConfig.Node.NodeResources.Devices = devices
devicesChanged = true
}
})
Expand Down

0 comments on commit 3e22e32

Please sign in to comment.