Skip to content

Commit

Permalink
extract label from id when summarising un[contained,managed]
Browse files Browse the repository at this point in the history
I missed this in #2998.
  • Loading branch information
rade committed Dec 28, 2017
1 parent 5a6a6df commit 569ccb7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions render/detailed/summary.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ func pseudoNodeSummary(base BasicNodeSummary, n report.Node) BasicNodeSummary {
case strings.HasPrefix(n.ID, render.UncontainedIDPrefix):
// render as an uncontained node
base.Label = render.UncontainedMajor
base.LabelMinor = report.ExtractHostID(n)
base.LabelMinor = n.ID[len(render.UncontainedIDPrefix):]
base.Shape = report.Square
base.Stack = true
case strings.HasPrefix(n.ID, render.UnmanagedIDPrefix):
// render as an unmanaged node
base.Label = render.UnmanagedMajor
base.LabelMinor = report.ExtractHostID(n)
base.LabelMinor = n.ID[len(render.UnmanagedIDPrefix):]
base.Shape = report.Square
base.Stack = true
default:
Expand Down

0 comments on commit 569ccb7

Please sign in to comment.