diff options
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Ohai.py')
-rw-r--r-- | src/lib/Bcfg2/Server/Plugins/Ohai.py | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Ohai.py b/src/lib/Bcfg2/Server/Plugins/Ohai.py index 20f9ba877..35e385a77 100644 --- a/src/lib/Bcfg2/Server/Plugins/Ohai.py +++ b/src/lib/Bcfg2/Server/Plugins/Ohai.py @@ -1,22 +1,10 @@ import lxml.etree import os - import logging -logger = logging.getLogger('Bcfg2.Plugins.Ohai') - import Bcfg2.Server.Plugin +from Bcfg2.Compat import json -try: - import json -except: - # FIXME: can be removed when server prereq is >= python 2.6 - # necessary for clients without the in-tree json module - try: - import simplejson as json - except: - logger.error("Unable to load any json modules. Make sure " - "python-simplejson is installed.") - raise ImportError +logger = logging.getLogger('Bcfg2.Plugins.Ohai') probecode = """#!/bin/sh |