summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-10-25 12:03:55 -0400
committerJim Meyering <jim@meyering.net>2006-10-25 12:03:55 -0400
commit61c08a90594c899c89be739321a915f948a09cba (patch)
tree6f1b44557338082655e9e0ab3f85604797e65b4b /cobbler
parent23132230d5a6468b30fc81fed02e30b3bb110b8b (diff)
downloadthird_party-cobbler-61c08a90594c899c89be739321a915f948a09cba.tar.gz
third_party-cobbler-61c08a90594c899c89be739321a915f948a09cba.tar.xz
third_party-cobbler-61c08a90594c899c89be739321a915f948a09cba.zip
Fix bug with kickstart templating (found by Tim Foreman)
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/action_sync.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index b723dc4..725bf7d 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -323,7 +323,8 @@ class BootSync:
data = fd.read()
fd.close()
for x in metadata.keys():
- data = data.replace("TEMPLATE::%s" % x, metadata[x])
+ if x != "":
+ data = data.replace("TEMPLATE::%s" % x, metadata[x])
fd = open(out_path, "w+")
fd.write(data)
fd.close()