Use const for host topology name

This commit is contained in:
Bryan Boreham
2021-05-18 14:08:45 +00:00
parent c6def0a92b
commit f800f6457b
2 changed files with 2 additions and 2 deletions

View File

@@ -722,7 +722,7 @@ func (r *Reporter) hostTopology() (report.Topology, error) {
}
result.AddNode(
report.MakeNode(report.MakeHostNodeID(n.Name)).
WithTopology("host").
WithTopology(report.Host).
WithLatestActiveControls(activeControl),
)
}

View File

@@ -230,7 +230,7 @@ func (n Node) Merge(other Node) Node {
}
// Special case to merge controls from two different probes.
if topology == "host" {
if topology == Host {
newNode = newNode.MergeActiveControls(other)
}