mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #3606 from techhat/iptables
Fixing incorrect positional parameters
This commit is contained in:
commit
3c8e996fba
@ -132,7 +132,7 @@ def save(filename):
|
||||
return out
|
||||
|
||||
|
||||
def append(table='filter', chain, rule=None):
|
||||
def append(table='filter', chain=None, rule=None):
|
||||
'''
|
||||
Append a rule to the specified table/chain.
|
||||
|
||||
@ -145,6 +145,8 @@ def append(table='filter', chain, rule=None):
|
||||
|
||||
salt '*' iptables.append filter INPUT '-m state --state RELATED,ESTABLISHED -j ACCEPT'
|
||||
'''
|
||||
if not chain:
|
||||
return 'Error: Chain needs to be specified'
|
||||
if not rule:
|
||||
return 'Error: Rule needs to be specified'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user