diff --git a/render/detailed/connections.go b/render/detailed/connections.go index a4974aad9..817710584 100644 --- a/render/detailed/connections.go +++ b/render/detailed/connections.go @@ -142,18 +142,18 @@ func (c *connectionCounters) rows(r report.Report, ns report.Nodes, includeLocal if includeLocal { connection.Metadata = append(connection.Metadata, report.MetadataRow{ - ID: remoteKey, - Value: row.localAddr, + ID: remoteKey, + Value: row.localAddr, }) } connection.Metadata = append(connection.Metadata, report.MetadataRow{ - ID: portKey, - Value: row.port, + ID: portKey, + Value: row.port, }, report.MetadataRow{ - ID: countKey, - Value: strconv.Itoa(count), + ID: countKey, + Value: strconv.Itoa(count), }, ) output = append(output, connection) diff --git a/render/detailed/node_test.go b/render/detailed/node_test.go index 3e065feb1..b691a0666 100644 --- a/render/detailed/node_test.go +++ b/render/detailed/node_test.go @@ -159,12 +159,12 @@ func TestMakeDetailedHostNode(t *testing.T) { Linkable: true, Metadata: []report.MetadataRow{ { - ID: "port", - Value: "80", + ID: "port", + Value: "80", }, { - ID: "count", - Value: "2", + ID: "count", + Value: "2", }, }, }, @@ -265,12 +265,12 @@ func TestMakeDetailedContainerNode(t *testing.T) { Linkable: true, Metadata: []report.MetadataRow{ { - ID: "port", - Value: "80", + ID: "port", + Value: "80", }, { - ID: "count", - Value: "2", + ID: "count", + Value: "2", }, }, }, @@ -281,12 +281,12 @@ func TestMakeDetailedContainerNode(t *testing.T) { Linkable: true, Metadata: []report.MetadataRow{ { - ID: "port", - Value: "80", + ID: "port", + Value: "80", }, { - ID: "count", - Value: "1", + ID: "count", + Value: "1", }, }, }, @@ -381,12 +381,12 @@ func TestMakeDetailedPodNode(t *testing.T) { Linkable: true, Metadata: []report.MetadataRow{ { - ID: "port", - Value: "80", + ID: "port", + Value: "80", }, { - ID: "count", - Value: "2", + ID: "count", + Value: "2", }, }, }, @@ -397,12 +397,12 @@ func TestMakeDetailedPodNode(t *testing.T) { Linkable: true, Metadata: []report.MetadataRow{ { - ID: "port", - Value: "80", + ID: "port", + Value: "80", }, { - ID: "count", - Value: "1", + ID: "count", + Value: "1", }, }, },