From da124381f4e7c1d4b7a7fbc6775da9b4726f802b Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Tue, 13 Dec 2016 15:14:53 -0800 Subject: [PATCH] ecs: Also make service a parent of task --- probe/awsecs/reporter.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/probe/awsecs/reporter.go b/probe/awsecs/reporter.go index 9a6e2321cb..c2039a8bdd 100644 --- a/probe/awsecs/reporter.go +++ b/probe/awsecs/reporter.go @@ -137,6 +137,8 @@ func (Reporter) Tag(rpt report.Report) (report.Report, error) { if serviceName, ok := ecsInfo.taskServiceMap[taskArn]; ok { serviceID := report.MakeECSServiceNodeID(serviceName) parentsSets = parentsSets.Add(report.ECSService, report.MakeStringSet(serviceID)) + // in addition, make service parent of task + rpt.ECSTask.Nodes[taskID] = rpt.ECSTask.Nodes[taskID].WithParents(report.MakeSets().Add(report.ECSService, report.MakeStringSet(serviceID))) } for _, containerID := range info.containerIDs { if containerNode, ok := rpt.Container.Nodes[containerID]; ok {