summaryrefslogtreecommitdiffstats
path: root/src/lib/Server/Plugins/Editor.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/Server/Plugins/Editor.py')
-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]