From 801e895f62acfa91fd19c54848845378cff926b6 Mon Sep 17 00:00:00 2001 From: Daniel Vigueras Date: Mon, 18 Jan 2016 16:11:13 +0100 Subject: [PATCH] iptables: fix param check in append_csv function --- lib/ansible/modules/extras/system/iptables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/extras/system/iptables.py b/lib/ansible/modules/extras/system/iptables.py index 2b71e1f938..4ed53b6e6c 100644 --- a/lib/ansible/modules/extras/system/iptables.py +++ b/lib/ansible/modules/extras/system/iptables.py @@ -238,7 +238,7 @@ def append_param(rule, param, flag, is_list): def append_csv(rule, param, flag): - if param is not None: + if param: rule.extend([flag, ','.join(param)])