Skip to content

Commit

Permalink
matrix-diff-ss: skip rpc.statd ports, known optional service
Browse files Browse the repository at this point in the history
  • Loading branch information
sabinaaledort committed May 22, 2024
1 parent e0ea2ca commit c984f54
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ import (
"github.com/openshift-kni/commatrix/types"
)

const rpcstatdService = "rpc.statd"

func main() {
var (
destDir string
Expand Down Expand Up @@ -195,6 +197,10 @@ func diff(mat types.ComMatrix, ssMat types.ComMatrix) string {
}

for _, cd := range ssMat.Matrix {
// Skip rpc.statd ports, known optional service
if cd.Service == rpcstatdService {
continue
}
if !mat.Contains(cd) {
diff += fmt.Sprintf("- %s\n", cd)
}
Expand Down

0 comments on commit c984f54

Please sign in to comment.