Browse Source

Set flag python_shell=True. Fixes #4 and #5

tags/v0.2.0
Mario del Pozo 9 years ago
parent
commit
63cc4e45fe
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      _modules/ufw.py

+ 1
- 1
_modules/ufw.py View File

@@ -3,7 +3,7 @@ Execution module for UFW.
"""
def is_enabled():
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



Loading…
Cancel
Save