Merge pull request #9264 from itnihao/patch-1

Update iptables.py
This commit is contained in:
Joseph Hall 2013-12-14 09:05:57 -08:00
commit 4ab553ddf8

View File

@ -301,6 +301,8 @@ def check(table='filter', chain=None, rule=None):
))
if out != -1:
out = ''
else:
return False
else:
cmd = 'iptables -t {0} -C {1} {2}'.format(table, chain, rule)
out = __salt__['cmd.run'](cmd)