mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-10-12 15:28:12 +00:00
b039b79e4a
The mergeNVMeTempsIntoDisks and mergeHostAgentSMARTIntoDisks functions require nodes to have LinkedHostAgentID populated to match disks with host agent SMART data. However, the code was passing the local modelNodes variable which doesn't have this field set - the linking happens inside UpdateNodesForInstance which modifies the state's copy, not the local var. Fixed by using currentState.Nodes (from GetSnapshot()) instead of modelNodes/modelNodesCopy in both the skip-poll path and the background goroutine. The state snapshot contains nodes with LinkedHostAgentID already populated, allowing proper SMART data merging. Related to #1014