Merge pull request #8185 from c-cooperjones/develop

Ammended iptables check if statement was mis-tabbed.
This commit is contained in:
Joseph Hall 2013-10-30 19:42:40 -07:00
commit ac18f8836a

View File

@ -271,8 +271,8 @@ def check(table='filter', chain=None, rule=None):
if __grains__['os_family'] == 'RedHat':
cmd = 'iptables-save'
out = __salt__['cmd.run'](cmd).find('-A {1} {2}'.format(table, chain, rule))
if out != -1:
out = ''
if out != -1:
out = ''
else:
cmd = 'iptables -t {0} -C {1} {2}'.format(table, chain, rule)
out = __salt__['cmd.run'](cmd)