ecs reporter: Fix a bug where parents weren't actually set

This commit is contained in:
Mike Lang
2016-11-23 20:46:23 -08:00
parent 90c8b6eeed
commit f5b7b5bec2

View File

@@ -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 {