Skip to content

Commit

Permalink
Collector lite to update existing Site details (#1918)
Browse files Browse the repository at this point in the history
Fixes #1911
  • Loading branch information
fgiorgetti authored Jan 27, 2025
1 parent 78a2731 commit c4f821e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/flow/flow_mem_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -753,6 +753,12 @@ func (fc *FlowCollector) updateRecord(record interface{}) error {
if site.Policy != nil {
current.Policy = site.Policy
}
if current.Platform != site.Platform {
current.Platform = site.Platform
}
if current.Version != site.Version {
current.Version = site.Version
}
}
}
fc.updateLastHeard(site.Source)
Expand Down

0 comments on commit c4f821e

Please sign in to comment.