summaryrefslogtreecommitdiff
path: root/system/iptables.py
diff options
context:
space:
mode:
authorDaniel Vigueras <dvigueras@doalitic.com>2016-01-18 16:11:13 +0100
committerDaniel Vigueras <dvigueras@doalitic.com>2016-01-18 16:11:13 +0100
commit16d17d287f9b2e29ed7869dfc9f8674410c0a421 (patch)
tree721498ff2ea020d5bc003f86dfea58875a039532 /system/iptables.py
parent570869ef48ec0bcdc9c2138e89bc77a3fe59282a (diff)
downloadansible-modules-extras-16d17d287f9b2e29ed7869dfc9f8674410c0a421.tar.gz
iptables: fix param check in append_csv function
Diffstat (limited to 'system/iptables.py')
-rw-r--r--system/iptables.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/iptables.py b/system/iptables.py
index 2b71e1f9..4ed53b6e 100644
--- a/system/iptables.py
+++ b/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)])