Commit 38b60874 by trbs

fix missing json module for issue #3363 print JSON error as string instead

parent b6c4ec07
......@@ -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