fix: batchFirstFingerprints does not update device on node after v1.3.5 (#15125)

* fix: update device in batch first footprint

* cl: add cl note

Co-authored-by: Seth Hoenig <shoenig@duck.com>
This commit is contained in:
Ethan 2022-11-04 05:31:39 +08:00 committed by GitHub
parent 147df77e62
commit 654ae1d591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

3
.changelog/15125.txt Normal file
View File

@ -0,0 +1,3 @@
```release-note:bug
device: Fixed a bug where device plugins would not fingerprint on startup
```

View File

@ -76,6 +76,7 @@ SEND_BATCH:
var devicesChanged bool var devicesChanged bool
c.batchNodeUpdates.batchDevicesUpdates(func(devices []*structs.NodeDeviceResource) { c.batchNodeUpdates.batchDevicesUpdates(func(devices []*structs.NodeDeviceResource) {
if c.updateNodeFromDevicesLocked(devices) { if c.updateNodeFromDevicesLocked(devices) {
newConfig.Node.NodeResources.Devices = devices
devicesChanged = true devicesChanged = true
} }
}) })