Commit 0fa6ed49 by Michael DeHaan

Merge pull request #3534 from trbs/issue_3363

fix missing json module for issue #3363 print JSON error as string instead
parents b6c4ec07 38b60874
......@@ -61,7 +61,7 @@ import sys
try:
import selinux
except ImportError:
print json.dumps(failed=True, msg='python-selinux required for this module')
print "failed=True msg='python-selinux required for this module'"
sys.exit(1)
# getter subroutines
......@@ -200,3 +200,4 @@ def main():
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
main()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment