mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
commit
4ab553ddf8
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user