summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2009-02-19 17:59:40 -0500
committerMichael DeHaan <mdehaan@redhat.com>2009-02-19 17:59:40 -0500
commitc33274c9e39242d1e04ab0468691810c75773914 (patch)
tree3dd4f1bd4e7dba6d96188bbd082f844489f9cfc5 /cobbler
parent42d194253aa9825a643ef73b6688b89d6559b0bd (diff)
downloadcobbler-c33274c9e39242d1e04ab0468691810c75773914.tar.gz
cobbler-c33274c9e39242d1e04ab0468691810c75773914.tar.xz
cobbler-c33274c9e39242d1e04ab0468691810c75773914.zip
Fix traceback possible with --template-files and invalid data
Conflicts: CHANGELOG
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/pxegen.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/cobbler/pxegen.py b/cobbler/pxegen.py
index 633e5359..262649f1 100644
--- a/cobbler/pxegen.py
+++ b/cobbler/pxegen.py
@@ -917,7 +917,9 @@ class PXEGen:
for template in templates.keys():
dest = templates[template]
-
+ if dest is None:
+ continue
+
# Run the source and destination files through
# templar first to allow for variables in the path
template = self.templar.render(template, blended, None).strip()