summaryrefslogtreecommitdiffstats
path: root/src/lib/Bcfg2/Server/Plugins/Ohai.py
diff options
context:
space:
mode:
authorChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-15 09:44:16 -0400
committerChris St. Pierre <chris.a.st.pierre@gmail.com>2012-08-15 09:44:16 -0400
commitd1073cc867ffc96952de4dddc5fb30d51fd5bf4e (patch)
tree01c485207f6a5c25ab5e36098f2d44afa4b3dd5a /src/lib/Bcfg2/Server/Plugins/Ohai.py
parent86a3298d8b69fe6b1e8258b825af389e004ff9ff (diff)
downloadbcfg2-d1073cc867ffc96952de4dddc5fb30d51fd5bf4e.tar.gz
bcfg2-d1073cc867ffc96952de4dddc5fb30d51fd5bf4e.tar.bz2
bcfg2-d1073cc867ffc96952de4dddc5fb30d51fd5bf4e.zip
removed more calls to file()
Diffstat (limited to 'src/lib/Bcfg2/Server/Plugins/Ohai.py')
-rw-r--r--src/lib/Bcfg2/Server/Plugins/Ohai.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/Bcfg2/Server/Plugins/Ohai.py b/src/lib/Bcfg2/Server/Plugins/Ohai.py
index 5fff20d98..20f9ba877 100644
--- a/src/lib/Bcfg2/Server/Plugins/Ohai.py
+++ b/src/lib/Bcfg2/Server/Plugins/Ohai.py
@@ -41,7 +41,7 @@ class OhaiCache(object):
# simply return if the client returned nothing
return
self.cache[item] = json.loads(value)
- file("%s/%s.json" % (self.dirname, item), 'w').write(value)
+ open("%s/%s.json" % (self.dirname, item), 'w').write(value)
def __getitem__(self, item):
if item not in self.cache: