From 3af6ad16874c4d51d6c681bafbaa07a419590d00 Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Fri, 10 Mar 2017 15:28:52 -0500 Subject: [PATCH] Fix iptables TypeError if state/match/ctstate missing Completely untested... Fixes #22465 --- lib/ansible/modules/system/iptables.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/ansible/modules/system/iptables.py b/lib/ansible/modules/system/iptables.py index ce6e89c543..391fcd6d1e 100644 --- a/lib/ansible/modules/system/iptables.py +++ b/lib/ansible/modules/system/iptables.py @@ -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)