diff options
-rw-r--r-- | CHANGELOG | 4 | ||||
-rw-r--r-- | cobbler/action_sync.py | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -4,7 +4,9 @@ Cobbler CHANGELOG * Mon Jan 21 2007 - 0.7.2 - default_virt_file_size and default_virt_ram added to settings - enforce permissions/selinux context after reposync -- support for renames that resolve dependencies +- better API for copying/renames, API consistancy cleanup +- support for renames that resolve dependencies, inclusion in CLI+webapp +- remove leading newline in rendered template files, which apparently breaks AutoYAST? * Wed Jan 09 2007 - 0.7.1 - allow imports to force usage of a specific kickstart template with --kickstart diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py index b61f525..b889f52 100644 --- a/cobbler/action_sync.py +++ b/cobbler/action_sync.py @@ -639,6 +639,10 @@ class BootSync: for x in metadata: if type(metadata[x]) == str: data_out = data_out.replace("@@%s@@" % x, metadata[x]) + + # remove leading newlines which apparently breaks AutoYAST ? + if data_out.startswith("\n"): + data_out = data_out.strip() if out_path is not None: self.mkdir(os.path.dirname(out_path)) |