mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #8185 from c-cooperjones/develop
Ammended iptables check if statement was mis-tabbed.
This commit is contained in:
commit
ac18f8836a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user