summaryrefslogtreecommitdiffstats
path: root/src/lib
diff options
context:
space:
mode:
authorJames Yang <jjyang@mcs.anl.gov>2008-07-29 16:27:59 +0000
committerJames Yang <jjyang@mcs.anl.gov>2008-07-29 16:27:59 +0000
commitd674cf5b4d64de4f8aac82b6ffb1f57c52e0be9f (patch)
treeeb214111e687226deeccafae0ba2890a38cd4e08 /src/lib
parent71668ac5fd26304a4aa124f182e03187303a0e46 (diff)
downloadbcfg2-d674cf5b4d64de4f8aac82b6ffb1f57c52e0be9f.tar.gz
bcfg2-d674cf5b4d64de4f8aac82b6ffb1f57c52e0be9f.tar.bz2
bcfg2-d674cf5b4d64de4f8aac82b6ffb1f57c52e0be9f.zip
added extra entry options for bcfg2-reports
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@4836 ce84e21b-d406-0410-9b95-82705330c041
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/Server/Plugins/Editor.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Editor.py b/src/lib/Server/Plugins/Editor.py
index b19df2bce..f638e1496 100644
--- a/src/lib/Server/Plugins/Editor.py
+++ b/src/lib/Server/Plugins/Editor.py
@@ -35,6 +35,12 @@ class EditEntrySet(Bcfg2.Server.Plugin.EntrySet):
entry.text = self.entries['edits'].ProcessDirectives(self.get_client_data(client))
if not entry.text:
entry.set('empty', 'true')
+ try:
+ f = open(self.path + filename + '.H_' + client, 'w')
+ f.write(entry.text)
+ f.close()
+ except:
+ pass
def get_client_data(self, client):
return self.inputs[client]