don't log tons of iptables help messages

This commit is contained in:
Thomas S Hatch 2014-05-30 11:52:47 -06:00
parent 9111626d62
commit 9f0c87f300

View File

@ -22,7 +22,7 @@ def __virtual__():
Only load the module if iptables is installed
'''
global HAS_CHECK
if salt_cmd.run('iptables --help').find('--check'):
if salt_cmd.run('iptables --help', quiet=True).find('--check'):
HAS_CHECK = True
if salt.utils.which('iptables'):