diff options
author | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-15 09:44:16 -0400 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2012-08-15 09:44:16 -0400 |
commit | d1073cc867ffc96952de4dddc5fb30d51fd5bf4e (patch) | |
tree | 01c485207f6a5c25ab5e36098f2d44afa4b3dd5a /src/lib/Bcfg2/Server/Plugins/Ohai.py | |
parent | 86a3298d8b69fe6b1e8258b825af389e004ff9ff (diff) | |
download | bcfg2-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.py | 2 |
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: |