https://fedorahosted.org/freeipa/ticket/4864

--
Martin^3 Babinsky
From 3b17495aa0262bf4dbcca006a14db3b786f3e51b Mon Sep 17 00:00:00 2001
From: Martin Babinsky <mbabi...@redhat.com>
Date: Fri, 30 Jan 2015 14:24:15 +0100
Subject: [PATCH] ipa-client-install: put eol character after the last line of
 altered config file(s)

https://fedorahosted.org/freeipa/ticket/4864
---
 ipa-client/ipaclient/ipachangeconf.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ipa-client/ipaclient/ipachangeconf.py b/ipa-client/ipaclient/ipachangeconf.py
index e802e177efcb0ff997f47f4f391c6787849f0c3f..15d41274f7a99550b0a49314fb949402e65ee1d1 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):
-- 
2.1.0

_______________________________________________
Freeipa-devel mailing list
Freeipa-devel@redhat.com
https://www.redhat.com/mailman/listinfo/freeipa-devel

Reply via email to