Skip to content

Commit 3fa1057

Browse files
committed
matrix-diff-ss: skip rpc.statd ports, known optional service
1 parent 8ac8618 commit 3fa1057

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

cmd/main.go

+6
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ import (
2121
"github.com/openshift-kni/commatrix/types"
2222
)
2323

24+
const rpcstatdService = "rpc.statd"
25+
2426
func main() {
2527
var (
2628
destDir string
@@ -195,6 +197,10 @@ func diff(mat types.ComMatrix, ssMat types.ComMatrix) string {
195197
}
196198

197199
for _, cd := range ssMat.Matrix {
200+
// Skip rpc.statd ports, known optional service
201+
if cd.Service == rpcstatdService {
202+
continue
203+
}
198204
if !mat.Contains(cd) {
199205
diff += fmt.Sprintf("- %s\n", cd)
200206
}

0 commit comments

Comments
 (0)