Skip to content

Commit

Permalink
Fix whitespace issues in the %addon output
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dashea committed Dec 2, 2014
1 parent 9a07523 commit 491bdcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions org_fedora_hello_world/ks/hello_world.py
Expand Up @@ -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):
Expand Down

0 comments on commit 491bdcf

Please sign in to comment.