mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 13:52:54 +00:00
Fix iptables TypeError if state/match/ctstate missing
Completely untested... Fixes #22465
This commit is contained in:
committed by
Brian Coca
parent
06bcff8d92
commit
3af6ad1687
@@ -406,8 +406,6 @@ def construct_rule(params):
|
||||
elif params['ctstate']:
|
||||
append_match(rule, params['ctstate'], 'conntrack')
|
||||
append_csv(rule, params['ctstate'], '--ctstate')
|
||||
else:
|
||||
return False
|
||||
append_match(rule, params['limit'] or params['limit_burst'], 'limit')
|
||||
append_param(rule, params['limit'], '--limit', False)
|
||||
append_param(rule, params['limit_burst'], '--limit-burst', False)
|
||||
|
||||
Reference in New Issue
Block a user