1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

made ctstate default to [] and evaluation conditional on the list being popoulated

This commit is contained in:
Brian Coca 2015-11-03 12:12:39 -05:00 committed by Matt Clay
parent fb3aec47ca
commit 61ba4b98e1

View file

@ -262,6 +262,7 @@ def construct_rule(params):
append_param(rule, params['to_ports'], '--to-ports', False)
append_comm(rule, params['comment'])
append_param(rule, params['comment'], '--comment', False)
if params['ctstate']:
append_conntrack(rule, params['ctstate'])
append_param(rule, ','.join(params['ctstate']), '--ctstate', False)
return rule