mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-02 01:30:30 +00:00
render sensible labels for swarm service nodes with little/no metadata
We fall back to using the service ID as the label.
This commit is contained in:
@@ -323,6 +323,9 @@ func ecsServiceNodeSummary(base NodeSummary, n report.Node) (NodeSummary, bool)
|
||||
|
||||
func swarmServiceNodeSummary(base NodeSummary, n report.Node) (NodeSummary, bool) {
|
||||
base.Label, _ = n.Latest.Lookup(docker.ServiceName)
|
||||
if base.Label == "" {
|
||||
base.Label, _ = report.ParseSwarmServiceNodeID(n.ID)
|
||||
}
|
||||
return base, true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user