mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #13518 from basepi/iptablesfix
Fix undefined variable in iptables module
This commit is contained in:
commit
6c66ae536d
1 changed files with 1 additions and 0 deletions
|
@ -480,6 +480,7 @@ def check(table='filter', chain=None, rule=None, family='ipv4'):
|
|||
if not rule:
|
||||
return 'Error: Rule needs to be specified'
|
||||
|
||||
HAS_CHECK = False
|
||||
if '--check' in salt_cmd.run('iptables --help', output_loglevel='quiet'):
|
||||
HAS_CHECK = True
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue