We shouldn't rely on AddonData instances to return strings ending with newline
in their __str__ methods and make sure %end ends up on a new line.
Signed-off-by: Vratislav Podzimek <vpodzime(a)redhat.com>
---
pyanaconda/addons.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pyanaconda/addons.py b/pyanaconda/addons.py
index 412e43a..525e561 100644
--- a/pyanaconda/addons.py
+++ b/pyanaconda/addons.py
@@ -112,7 +112,7 @@ class AddonData(object):
self.content = ""
def __str__(self):
- return "%%addon %s\n%s%%end\n" % (self.name, self.content)
+ return "%%addon %s\n%s\n%%end\n" % (self.name, self.content)
# pylint: disable-msg=C0103
def setup(self, storage, ksdata, instClass):
--
1.7.11.7