diff --git a/library/ohai b/library/ohai index 968c0472367..7aefd065015 100644 --- a/library/ohai +++ b/library/ohai @@ -2,7 +2,11 @@ # requires 'ohai' to be installed -import json +try: + import json +except ImportError: + import simplejson as json + import subprocess cmd = subprocess.Popen("/usr/bin/ohai", stdout=subprocess.PIPE, stderr=subprocess.PIPE)