mirror of
https://github.com/weaveworks/scope.git
synced 2026-02-14 18:09:59 +00:00
Use const for host topology name
This commit is contained in:
@@ -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),
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user