render sensible labels for ecs task nodes with little/no metadata

We fall back to using the ARN as the label.
This commit is contained in:
Matthias Radestock
2017-12-27 13:54:29 +00:00
parent 289226707d
commit 9aed0792ac
+3
View File
@@ -309,6 +309,9 @@ func podGroupNodeSummary(base NodeSummary, n report.Node) (NodeSummary, bool) {
func ecsTaskNodeSummary(base NodeSummary, n report.Node) (NodeSummary, bool) {
base.Label, _ = n.Latest.Lookup(awsecs.TaskFamily)
if base.Label == "" {
base.Label, _ = report.ParseECSTaskNodeID(n.ID)
}
return base, true
}