summaryrefslogtreecommitdiffstats
path: root/cobbler/utils.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-09 19:20:43 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-09 19:20:43 -0400
commit0e8adb75c6d82a83d371745c85f219b8412ceb88 (patch)
tree3a56d49bcadd932e52315ef1209d2d6529448fcd /cobbler/utils.py
parent8b063147ff16bb9412e15f841c673fdc12d5abdb (diff)
downloadthird_party-cobbler-0e8adb75c6d82a83d371745c85f219b8412ceb88.tar.gz
third_party-cobbler-0e8adb75c6d82a83d371745c85f219b8412ceb88.tar.xz
third_party-cobbler-0e8adb75c6d82a83d371745c85f219b8412ceb88.zip
In templating, show the 1st mac as "$mac_address_intf1" not "$mac_addressintf1". And so on
for other vars and other interfaces.
Diffstat (limited to 'cobbler/utils.py')
-rw-r--r--cobbler/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/utils.py b/cobbler/utils.py
index b84140c..48e79d8 100644
--- a/cobbler/utils.py
+++ b/cobbler/utils.py
@@ -302,7 +302,7 @@ def blender(remove_hashes, root_obj):
if root_obj.COLLECTION_TYPE == "system":
for (name,interface) in root_obj.interfaces.iteritems():
for key in interface.keys():
- results["%s%s" % (key,name)] = interface[key]
+ results["%s_%s" % (key,name)] = interface[key]
# just to keep templates backwards compatibile
if name == "0":
results[key] = interface[key]