Update ohai module to run on older python clients.
This commit is contained in:
parent
0cf1ef735d
commit
814951b8e1
1 changed files with 5 additions and 1 deletions
6
ohai
6
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)
|
||||
|
|
Loading…
Reference in a new issue