diff options
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r-- | cobbler/action_sync.py | 4 |
1 files changed, 4 insertions, 0 deletions
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)) |