summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2008-01-22 18:19:42 -0500
committerMichael DeHaan <mdehaan@redhat.com>2008-01-22 18:19:42 -0500
commit2f9fd2c61a18661adb007d46f1f83ac12154f406 (patch)
tree70535dfa8764d2f995f1f1643e7d9b5ff850ed8b /cobbler/action_sync.py
parent740fb8f83c5e37b72a08b216c442528e68268b4a (diff)
downloadthird_party-cobbler-2f9fd2c61a18661adb007d46f1f83ac12154f406.tar.gz
third_party-cobbler-2f9fd2c61a18661adb007d46f1f83ac12154f406.tar.xz
third_party-cobbler-2f9fd2c61a18661adb007d46f1f83ac12154f406.zip
Keep leading newline from appearing in template files.
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py4
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))