summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Ohai.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Ohai.py')
-rw-r--r--src/lib/Server/Plugins/Ohai.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Ohai.py b/src/lib/Server/Plugins/Ohai.py
index c18bcbbce..3cd9534c5 100644
--- a/src/lib/Server/Plugins/Ohai.py
+++ b/src/lib/Server/Plugins/Ohai.py
@@ -26,6 +26,9 @@ class OhaiCache(object):
self.cache = dict()
def __setitem__(self, item, value):
+ if value == None:
+ # simply return if the client returned nothing
+ return
self.cache[item] = json.loads(value)
file("%s/%s.json" % (self.dirname, item), 'w').write(value)