""" | """ | ||||
def is_enabled(): | def is_enabled(): | ||||
cmd = 'ufw status | grep "Status: active"' | cmd = 'ufw status | grep "Status: active"' | ||||
out = __salt__['cmd.run'](cmd) | |||||
out = __salt__['cmd.run'](cmd, python_shell=True) | |||||
return True if out else False | return True if out else False | ||||