summaryrefslogtreecommitdiffstats
path: root/cobbler
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-31 14:01:44 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-31 14:01:44 -0400
commit83a3ce6e077b682a7a753e33009be539f54c6321 (patch)
treeda07b26aad092ddf285fcdace3fcebd3ebe3fa7b /cobbler
parent02d2e0137f706018baf3b0b1794afdc3cbf4cda9 (diff)
downloadthird_party-cobbler-83a3ce6e077b682a7a753e33009be539f54c6321.tar.gz
third_party-cobbler-83a3ce6e077b682a7a753e33009be539f54c6321.tar.xz
third_party-cobbler-83a3ce6e077b682a7a753e33009be539f54c6321.zip
Add in templating for $hostname and other variables for first interface, to be backwards
compatible with older templates.
Diffstat (limited to 'cobbler')
-rw-r--r--cobbler/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/utils.py b/cobbler/utils.py
index 4579438..113d9dd 100644
--- a/cobbler/utils.py
+++ b/cobbler/utils.py
@@ -304,7 +304,7 @@ def blender(api_handle,remove_hashes, root_obj):
for key in interface.keys():
results["%s_%s" % (key,name)] = interface[key]
# just to keep templates backwards compatibile
- if name == "0":
+ if name == "intf0":
results[key] = interface[key]
# sanitize output for koan and kernel option lines, etc