mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 02:00:43 +00:00
better detection of endpoint children, to avoid including MapX2IP results
This commit is contained in:
@@ -137,7 +137,7 @@ func outgoingConnectionsTable(topologyID string, n report.Node, ns report.Nodes)
|
||||
func endpointChildrenOf(n report.Node) []report.Node {
|
||||
result := []report.Node{}
|
||||
n.Children.ForEach(func(child report.Node) {
|
||||
if _, _, _, ok := report.ParseEndpointNodeID(child.ID); ok {
|
||||
if child.Topology == report.Endpoint {
|
||||
result = append(result, child)
|
||||
}
|
||||
})
|
||||
@@ -147,7 +147,7 @@ func endpointChildrenOf(n report.Node) []report.Node {
|
||||
func endpointChildIDsOf(n report.Node) report.IDList {
|
||||
result := report.MakeIDList()
|
||||
n.Children.ForEach(func(child report.Node) {
|
||||
if _, _, _, ok := report.ParseEndpointNodeID(child.ID); ok {
|
||||
if child.Topology == report.Endpoint {
|
||||
result = result.Add(child.ID)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user