diff options
author | Michael DeHaan <mdehaan@redhat.com> | 2007-10-09 13:46:38 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@redhat.com> | 2007-10-09 13:46:38 -0400 |
commit | 6dce1a9c7d6957ee7a51595de4d0a5bf12dbb3ec (patch) | |
tree | 5786b081bc3cbdd13a3ddb2a2c0eda31229234a0 /cobbler/action_litesync.py | |
parent | c86302a23426c3f087dc4b6a1741267e2228cc29 (diff) | |
download | third_party-cobbler-6dce1a9c7d6957ee7a51595de4d0a5bf12dbb3ec.tar.gz third_party-cobbler-6dce1a9c7d6957ee7a51595de4d0a5bf12dbb3ec.tar.xz third_party-cobbler-6dce1a9c7d6957ee7a51595de4d0a5bf12dbb3ec.zip |
Storing NICs in a hash for easier access + some refactoring + modifications to the find function.
Diffstat (limited to 'cobbler/action_litesync.py')
-rw-r--r-- | cobbler/action_litesync.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py index 9f575c4..81eafff 100644 --- a/cobbler/action_litesync.py +++ b/cobbler/action_litesync.py @@ -115,15 +115,15 @@ class BootLiteSync: system_record = self.systems.find(name=name) # delete any kickstart files related to this system counter = 0 - for x in system_record.interfaces: + for (name,interface) in system_record.interfaces.iteritems(): 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(): - # no need to go any further with PXE cleanup - return + # unneeded + #if not system_record.is_pxe_supported(): + # # no need to go any further with PXE cleanup + # return # delete PXE Linux configuration file (which might be in one of two places) itanic = False |