From 491bdcf10a7fdd9aa798454e49d2b37ae8991ab7 Mon Sep 17 00:00:00 2001 From: David Shea Date: Tue, 2 Dec 2014 17:21:53 -0500 Subject: [PATCH] Fix whitespace issues in the %addon output There was no space between the addon name and the parameter, so the resulting kickstart would end up with a line like %addon org_fedora_hello_world--reverse Also add a \n after %end so that subsequent addons start on a new line. --- org_fedora_hello_world/ks/hello_world.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/org_fedora_hello_world/ks/hello_world.py b/org_fedora_hello_world/ks/hello_world.py index bc2e686..dad44be 100644 --- a/org_fedora_hello_world/ks/hello_world.py +++ b/org_fedora_hello_world/ks/hello_world.py @@ -63,9 +63,9 @@ def __str__(self): addon_str = "%%addon %s" % self.name if self.reverse: - addon_str += "--reverse" + addon_str += " --reverse" - addon_str += "\n%s\n%%end" % self.text + addon_str += "\n%s\n%%end\n" % self.text return addon_str def handle_header(self, lineno, args):