From 98b284159f0e2907219f037a6982c4309d1d0a2b Mon Sep 17 00:00:00 2001 From: trbs Date: Mon, 15 Jul 2013 16:50:31 +0200 Subject: [PATCH] fix missing json module for issue #3363 print JSON error as string instead --- system/selinux | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system/selinux b/system/selinux index 98e1fdb35ad..f852c91ee9f 100644 --- a/system/selinux +++ b/system/selinux @@ -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(): #<> main() +