mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-04 02:30:45 +00:00
ecs reporter: Fix a bug where parents weren't actually set
This commit is contained in:
@@ -93,10 +93,10 @@ func (r Reporter) Tag(rpt report.Report) (report.Report, error) {
|
||||
|
||||
// parents sets to merge into all matching container nodes
|
||||
parentsSets := report.MakeSets()
|
||||
parentsSets.Add(report.ECSTask, report.MakeStringSet(taskID))
|
||||
parentsSets = parentsSets.Add(report.ECSTask, report.MakeStringSet(taskID))
|
||||
if serviceName, ok := taskServices[taskArn]; ok {
|
||||
serviceID := report.MakeECSServiceNodeID(serviceName)
|
||||
parentsSets.Add(report.ECSService, report.MakeStringSet(serviceID))
|
||||
parentsSets = parentsSets.Add(report.ECSService, report.MakeStringSet(serviceID))
|
||||
}
|
||||
|
||||
for _, containerID := range info.containerIDs {
|
||||
|
||||
Reference in New Issue
Block a user