Update ohai module to run on older python clients.
parent
f17c4ca4b2
commit
9e931f323c
|
@ -2,7 +2,11 @@
|
||||||
|
|
||||||
# requires 'ohai' to be installed
|
# requires 'ohai' to be installed
|
||||||
|
|
||||||
import json
|
try:
|
||||||
|
import json
|
||||||
|
except ImportError:
|
||||||
|
import simplejson as json
|
||||||
|
|
||||||
import subprocess
|
import subprocess
|
||||||
|
|
||||||
cmd = subprocess.Popen("/usr/bin/ohai", stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
cmd = subprocess.Popen("/usr/bin/ohai", stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||||
|
|
Loading…
Reference in New Issue