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

reviewable/pr18780/r1
Brian Coca 9 years ago
parent ea2fd78e6a
commit 6a87eed586

@ -262,8 +262,9 @@ 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)
append_conntrack(rule, params['ctstate'])
append_param(rule, ','.join(params['ctstate']), '--ctstate', False)
if params['ctstate']:
append_conntrack(rule, params['ctstate'])
append_param(rule, ','.join(params['ctstate']), '--ctstate', False)
return rule

Loading…
Cancel
Save