summaryrefslogtreecommitdiffstats
path: root/ipa-client/ipaclient
diff options
context:
space:
mode:
authorMartin Babinsky <mbabinsk@redhat.com>2015-01-30 14:24:15 +0100
committerMartin Kosek <mkosek@redhat.com>2015-02-10 12:54:29 +0100
commita4481023474772a073553bf2395801cdd08c1088 (patch)
treed467d44a8b4399a7951b9be2b79b4fd7fc0a11aa /ipa-client/ipaclient
parent959b0efa386e60d9b72c1c8852ba95349f1e0d2c (diff)
downloadfreeipa-a4481023474772a073553bf2395801cdd08c1088.tar.gz
freeipa-a4481023474772a073553bf2395801cdd08c1088.tar.xz
freeipa-a4481023474772a073553bf2395801cdd08c1088.zip
ipa-client-install: put eol character after the last line of altered config file(s)
https://fedorahosted.org/freeipa/ticket/4864 Reviewed-By: Martin Basti <mbasti@redhat.com>
Diffstat (limited to 'ipa-client/ipaclient')
-rw-r--r--ipa-client/ipaclient/ipachangeconf.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/ipa-client/ipaclient/ipachangeconf.py b/ipa-client/ipaclient/ipachangeconf.py
index e802e177e..15d41274f 100644
--- a/ipa-client/ipaclient/ipachangeconf.py
+++ b/ipa-client/ipaclient/ipachangeconf.py
@@ -190,6 +190,9 @@ class IPAChangeConf:
continue
raise SyntaxError('Unknown type: [%s]' % o['type'])
+ # append an empty string to the output so that we add eol to the end
+ # of the file contents in a single join()
+ output.append('')
return self.deol.join(output)
def parseLine(self, line):