summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorBrian Coca <bcoca@ansible.com>2016-01-25 23:58:54 -0500
committerBrian Coca <bcoca@ansible.com>2016-01-25 23:58:54 -0500
commit98eeb689ced29cf9d872e4f01f3ed2912ac217f4 (patch)
tree68f2d846c792a52363d95c564b708046c8c45028 /system
parenta7ad0bc7be5869401226a7f92b1384dce00a02ca (diff)
parent16d17d287f9b2e29ed7869dfc9f8674410c0a421 (diff)
downloadansible-modules-extras-98eeb689ced29cf9d872e4f01f3ed2912ac217f4.tar.gz
Merge pull request #1514 from doalitic/iptables-fix-append_csv
iptables: fix param check in append_csv function
Diffstat (limited to 'system')
-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)])