diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-10-08 16:39:41 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-10-08 16:39:41 -0400 |
commit | 0b56b91457c3c6002c12c7cff15a08ce3e695e6a (patch) | |
tree | 51e9384ee9d468d7f462f1713686085c7cb62dfc /cobbler/action_litesync.py | |
parent | dd19b31fc9367592dd2e00c02757db05182c1aba (diff) | |
download | cobbler-0b56b91457c3c6002c12c7cff15a08ce3e695e6a.tar.gz cobbler-0b56b91457c3c6002c12c7cff15a08ce3e695e6a.tar.xz cobbler-0b56b91457c3c6002c12c7cff15a08ce3e695e6a.zip |
More work on the new multi-NIC code. Largely working at this point, sync has
been updated, and backwards compatibility (upgrades) have been tested. Koan
still has to be modified and tested, and templating still needs to be tested.
Diffstat (limited to 'cobbler/action_litesync.py')
-rw-r--r-- | cobbler/action_litesync.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py index 61b4ee57..9f575c43 100644 --- a/cobbler/action_litesync.py +++ b/cobbler/action_litesync.py @@ -113,9 +113,12 @@ class BootLiteSync: self.sync.rmfile(os.path.join(self.settings.webdir, "systems", name)) # delete contents of kickstarts_sys/$name in webdir system_record = self.systems.find(name=name) - # FIXME: make this understand multiple interfaces - filename = utils.get_config_filename(system_record) - self.sync.rmtree(os.path.join(self.settings.webdir, "kickstarts_sys", filename)) + # delete any kickstart files related to this system + counter = 0 + for x in system_record.interfaces: + filename = utils.get_config_filename(system_record,interface=counter) + self.sync.rmtree(os.path.join(self.settings.webdir, "kickstarts_sys", filename)) + counter = counter + 1 # FIXME: make this understand multiple interfaces if not system_record.is_pxe_supported(): |