summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNarayan Desai <desai@mcs.anl.gov>2009-03-02 02:20:03 +0000
committerNarayan Desai <desai@mcs.anl.gov>2009-03-02 02:20:03 +0000
commit795301a3646637aa3a8a1cd8a46863d76422e2ee (patch)
tree880eef32ccb703f01e7c9ae98b5be5cd4c3c6492
parent0ddc77cdd798577b3ecbdf047ceda7be58349cd8 (diff)
downloadbcfg2-795301a3646637aa3a8a1cd8a46863d76422e2ee.tar.gz
bcfg2-795301a3646637aa3a8a1cd8a46863d76422e2ee.tar.bz2
bcfg2-795301a3646637aa3a8a1cd8a46863d76422e2ee.zip
Fix newlinks at the end of .cat files
git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5091 ce84e21b-d406-0410-9b95-82705330c041
-rw-r--r--src/lib/Server/Plugins/Cfg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/Server/Plugins/Cfg.py b/src/lib/Server/Plugins/Cfg.py
index 1c283b041..d0e36858a 100644
--- a/src/lib/Server/Plugins/Cfg.py
+++ b/src/lib/Server/Plugins/Cfg.py
@@ -82,6 +82,8 @@ class CfgEntrySet(Bcfg2.Server.Plugin.EntrySet):
for delta in used:
data = data.strip()
data = process_delta(data, delta)
+ if used:
+ data += '\n'
if entry.get('encoding') == 'base64':
entry.text = binascii.b2a_base64(data)
else: