tests: iptables-save-cuts-space-before-j: Fix for CentOS

Newer CentOS behave just like newer RHEL.

Related: RHEL-14147
This commit is contained in:
Phil Sutter 2023-10-27 20:05:39 +00:00
parent 26c9e1e407
commit 66c02f9077

View File

@ -38,7 +38,7 @@ rlJournalStart
rlPhaseStartTest
RULE="-A INPUT -p dccp -m dccp --dccp-type RESET,INVALID -j LOG"
if rlIsRHEL '>6' || rlIsFedora; then
if rlIsRHEL '>6' || rlIsFedora || rlIsCentOS '>7'; then
RULE="${RULE/type/types}" # it is exported under other name
fi
rlLogInfo "using rule '$RULE'"