summaryrefslogtreecommitdiffstats
path: root/cobbler/action_sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-09-29 12:49:17 -0400
committerJim Meyering <jim@meyering.net>2006-09-29 12:49:17 -0400
commit1d9b0343abaf2b23e177e3c56f19f182f2299182 (patch)
tree2d1320a4e4fcb8ce00cb0ed6d94c47af253badd7 /cobbler/action_sync.py
parent810c7e39285c17803cfdad2909b4bec79762055c (diff)
downloadthird_party-cobbler-1d9b0343abaf2b23e177e3c56f19f182f2299182.tar.gz
third_party-cobbler-1d9b0343abaf2b23e177e3c56f19f182f2299182.tar.xz
third_party-cobbler-1d9b0343abaf2b23e177e3c56f19f182f2299182.zip
Commiting the (working) enchant feature and associated changes to enable
it. Some error handling is needed but it's functional. See NEWS and manpage for documentation on enchant.
Diffstat (limited to 'cobbler/action_sync.py')
-rw-r--r--cobbler/action_sync.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py
index d7cd1a1..2b3e23a 100644
--- a/cobbler/action_sync.py
+++ b/cobbler/action_sync.py
@@ -59,12 +59,12 @@ class BootSync:
self.verbose = verbose
self.dryrun = dryrun
self.clean_trees()
+ self.copy_koan()
self.copy_bootloaders()
self.copy_distros()
self.validate_kickstarts()
self.configure_httpd()
self.build_trees()
- self.copy_koan()
if self.settings.manage_dhcp:
self.write_dhcp_file()
try:
@@ -77,11 +77,13 @@ class BootSync:
def copy_koan(self):
koan_path = self.settings.koan_path
+ print "koan path = %s" % koan_path
if koan_path is None:
return
if not os.path.isfile(koan_path):
raise cexceptions.CobblerException("exc_koan_path")
- self.copyfile(koan_path, os.path.join(self.settings.webdir, "koan.rpm"))
+ base = os.path.basename(koan_path)
+ self.copyfile(koan_path, os.path.join(self.settings.webdir, base))
def copy_bootloaders(self):
"""