mirror of
https://github.com/ansible/ansible.git
synced 2026-08-02 16:12:06 +02:00
Update ohai module to run on older python clients.
This commit is contained in:
+5
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user