From f7c7a133ced273fcf4470555e4f56d615fa70c38 Mon Sep 17 00:00:00 2001 From: Sabina Aledort Date: Sun, 12 May 2024 16:21:28 +0300 Subject: [PATCH] matrix-diff-ss: skip rpc.statd ports, known optional service --- cmd/main.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cmd/main.go b/cmd/main.go index 1a746c7..e0e4181 100644 --- a/cmd/main.go +++ b/cmd/main.go @@ -193,6 +193,12 @@ func buildMatrixDiff(mat1 types.ComMatrix, mat2 types.ComMatrix) string { } for _, cd := range mat2.Matrix { + // Skip "rpc.statd" ports, these are randomly open ports on the node, + // no need to mention them in the matrix diff + if cd.Service == "rpc.statd" { + continue + } + if !mat1.Contains(cd) { diff += fmt.Sprintf("- %s\n", cd) }