summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-09 18:47:51 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-09 18:47:51 -0400
commit8b063147ff16bb9412e15f841c673fdc12d5abdb (patch)
tree0d2ea385417da9a3555c9508aa4501804bbe2978 /cobbler/action_sync.py
parent39c585f8c699acf1f4cd8dfaeef8466ef6ead2f0 (diff)
downloadthird_party-cobbler-8b063147ff16bb9412e15f841c673fdc12d5abdb.tar.gz
third_party-cobbler-8b063147ff16bb9412e15f841c673fdc12d5abdb.tar.xz
third_party-cobbler-8b063147ff16bb9412e15f841c673fdc12d5abdb.zip
The stringification problem appears to lie in the serializer, so explicitly use strings in the YAML
to pacify the XMLRPC bits. Plus, this is more readable.
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index 67af0df..1403a36 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -628,7 +628,7 @@ class BootSync:
ip = interface["ip_address"]
- f1 = utils.get_config_filename(system,interface=counter)
+ f1 = utils.get_config_filename(system,interface=name)
# for tftp only ...
if distro.arch in [ "x86", "x86_64", "standard"]:
@@ -640,7 +640,7 @@ class BootSync:
if ip is not None and ip != "":
print _("Warning: Itanium system object (%s) needs an IP address to PXE") % system.name
- filename = "%s.conf" % utils.get_config_filename(system,interface=counter)
+ filename = "%s.conf" % utils.get_config_filename(system,interface=name)
f2 = os.path.join(self.settings.tftpboot, filename)
f3 = os.path.join(self.settings.webdir, "systems", f1)