cleaning up old todo

This commit is contained in:
Paul Bellamy
2016-05-03 13:45:54 +01:00
parent 64450a4830
commit c40f29caf2

View File

@@ -362,9 +362,7 @@ func MapContainer2Hostname(n report.Node, _ report.Networks) report.Nodes {
}
node := NewDerivedNode(id, n).WithTopology(MakeGroupNodeTopology(n.Topology, docker.ContainerHostname))
node.Latest = node.Latest.
Set(docker.ContainerHostname, timestamp, id).
Delete(docker.ContainerName) // TODO(paulbellamy): total hack to render these by hostname instead.
node.Latest = node.Latest.Set(docker.ContainerHostname, timestamp, id)
node.Counters = node.Counters.Add(n.Topology, 1)
return report.Nodes{id: node}
}