fix missing json module for issue #3363 print JSON error as string instead
This commit is contained in:
parent
b6c4ec0713
commit
38b6087495
1 changed files with 2 additions and 1 deletions
|
@ -61,7 +61,7 @@ import sys
|
||||||
try:
|
try:
|
||||||
import selinux
|
import selinux
|
||||||
except ImportError:
|
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)
|
sys.exit(1)
|
||||||
|
|
||||||
# getter subroutines
|
# getter subroutines
|
||||||
|
@ -200,3 +200,4 @@ def main():
|
||||||
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
#<<INCLUDE_ANSIBLE_MODULE_COMMON>>
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue