summaryrefslogtreecommitdiffstats
path: root/cobbler/action_litesync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2007-02-19 16:51:17 -0500
committerJim Meyering <jim@meyering.net>2007-02-19 16:51:17 -0500
commit978103bc2e95d16f840c98a337f170ecaf3771c2 (patch)
tree62a39e4c02b717c4620c15be889eae980e64d391 /cobbler/action_litesync.py
parent5a186d963ae3c89af01bdc71be0c73f294463c38 (diff)
downloadthird_party-cobbler-978103bc2e95d16f840c98a337f170ecaf3771c2.tar.gz
third_party-cobbler-978103bc2e95d16f840c98a337f170ecaf3771c2.tar.xz
third_party-cobbler-978103bc2e95d16f840c98a337f170ecaf3771c2.zip
Fixes to work with older versions of Cheetah, small fix to system delete code so it deletes the right file in kickstarts_sys.
Diffstat (limited to 'cobbler/action_litesync.py')
-rw-r--r--cobbler/action_litesync.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cobbler/action_litesync.py b/cobbler/action_litesync.py
index d9d2e4a..4f9195c 100644
--- a/cobbler/action_litesync.py
+++ b/cobbler/action_litesync.py
@@ -107,9 +107,9 @@ class BootLiteSync:
# delete system YAML file in systems/$name in webdir
self.sync.rmfile(os.path.join(self.settings.webdir, "systems", name))
# delete contents of kickstarts_sys/$name in webdir
- self.sync.rmtree(os.path.join(self.settings.webdir, "kickstarts_sys", name))
+ filename = self.sync.get_pxe_filename(name)
+ self.sync.rmtree(os.path.join(self.settings.webdir, "kickstarts_sys", filename))
# delete pxelinux.cfg/$foo where $foo is either the *encoded* IP
# or the MAC or default
- filename = self.sync.get_pxe_filename(name)
self.sync.rmfile(os.path.join(self.settings.tftpboot, "pxelinux.cfg", filename))