summaryrefslogtreecommitdiffstats
path: root/cobbler/action_litesync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-10-09 18:34:17 -0400
committerMichael DeHaan <mdehaan@redhat.com>2007-10-09 18:34:17 -0400
commit39c585f8c699acf1f4cd8dfaeef8466ef6ead2f0 (patch)
tree0fecce89e9f5134d4285ed9bd38f8ffb4b699b95 /cobbler/action_litesync.py
parent3cc502a0b46d7771d713aa628475b5552a62f15e (diff)
downloadcobbler-39c585f8c699acf1f4cd8dfaeef8466ef6ead2f0.tar.gz
cobbler-39c585f8c699acf1f4cd8dfaeef8466ef6ead2f0.tar.xz
cobbler-39c585f8c699acf1f4cd8dfaeef8466ef6ead2f0.zip
More work to ensure interfaces remain strings, even though they look a lot like numbers presently...
Diffstat (limited to 'cobbler/action_litesync.py')
-rw-r--r--cobbler/action_litesync.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py
index 81eafff2..a1f9eea1 100644
--- a/cobbler/action_litesync.py
+++ b/cobbler/action_litesync.py
@@ -114,11 +114,9 @@ class BootLiteSync:
# delete contents of kickstarts_sys/$name in webdir
system_record = self.systems.find(name=name)
# delete any kickstart files related to this system
- counter = 0
for (name,interface) in system_record.interfaces.iteritems():
- filename = utils.get_config_filename(system_record,interface=counter)
+ filename = utils.get_config_filename(system_record,interface=name)
self.sync.rmtree(os.path.join(self.settings.webdir, "kickstarts_sys", filename))
- counter = counter + 1
# unneeded
#if not system_record.is_pxe_supported():