summaryrefslogtreecommitdiffstats
path: root/cobbler/sync.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-05-05 11:13:16 -0400
committerJim Meyering <jim@meyering.net>2006-05-05 11:13:16 -0400
commit9aef401e5787d9c00424dbdfceb577aa9ce1f012 (patch)
treefcc122acbccbe42a5a1d7ea79eec8e3c24e178c2 /cobbler/sync.py
parenta5ffe9dda2488240d3fa440a11b2a88267110031 (diff)
downloadthird_party-cobbler-9aef401e5787d9c00424dbdfceb577aa9ce1f012.tar.gz
third_party-cobbler-9aef401e5787d9c00424dbdfceb577aa9ce1f012.tar.xz
third_party-cobbler-9aef401e5787d9c00424dbdfceb577aa9ce1f012.zip
Make /etc/cobbler.conf be packaged instead of being created, proper handling of parse errors on config files, tweaking unit tests tempfile stuff since sync() test is currently broken by the tempfile changes (why??)
Diffstat (limited to 'cobbler/sync.py')
-rw-r--r--cobbler/sync.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/cobbler/sync.py b/cobbler/sync.py
index 80b0c67..3494382 100644
--- a/cobbler/sync.py
+++ b/cobbler/sync.py
@@ -101,6 +101,7 @@ class BootSync:
initrd = self.api.utils.find_initrd(d.initrd) # full path
if kernel is None or not os.path.isfile(kernel):
self.api.last_error = "Kernel for distro (%s) cannot be found and needs to be fixed: %s" % (d.name, d.kernel)
+ print self.api.last_error
raise "error"
if initrd is None or not os.path.isfile(initrd):
self.api.last_error = "Initrd for distro (%s) cannot be found and needs to be fixed: %s" % (d.name, d.initrd)