diff options
author | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-08-27 11:51:11 -0400 |
---|---|---|
committer | Michael DeHaan <mdehaan@mdehaan.rdu.redhat.com> | 2007-08-27 11:51:11 -0400 |
commit | 2ead5ca92d371325a67d6cef0cf38c00e88c99b1 (patch) | |
tree | ef5b6db9e867933e8969dd41314a82891fc36a1a | |
parent | 10d81dc3b6d4a1db0abc701ee40e5aaad22c2f45 (diff) | |
download | third_party-cobbler-2ead5ca92d371325a67d6cef0cf38c00e88c99b1.tar.gz third_party-cobbler-2ead5ca92d371325a67d6cef0cf38c00e88c99b1.tar.xz third_party-cobbler-2ead5ca92d371325a67d6cef0cf38c00e88c99b1.zip |
Ignore subdirectories found in /var/lib/cobbler/snippets
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | cobbler/action_sync.py | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -2,13 +2,14 @@ Cobbler CHANGELOG (all entries mdehaan@redhat.com unless noted otherwise) * Fri Aug 17 2007 - 0.6.1 -- re enable --resolve in yumdownloader +- re enable --resolve in yumdownloader (cobbler repo mgmt feature) - fix get_distros_for_koan API function in cobblerd (not used by koan) - allow find API to search by arbitrary fields - status and logging now shows system names - upgraded init scripts - zeroconf/avahi publishing for cobblerd service - logRequests = 0 for XMLRPC. Make it be quiet. +- ignore subdirectories of /var/lib/cobbler/snippets * Thu Aug 09 2007 - 0.6.0 - bugfix in error path in "cobbler check" diff --git a/cobbler/action_sync.py b/cobbler/action_sync.py index cd13cdf..c844610 100644 --- a/cobbler/action_sync.py +++ b/cobbler/action_sync.py @@ -470,6 +470,8 @@ class BootSync: snippet_cache = {} snippets = glob.glob("%s/*" % self.settings.snippetsdir) for snip in snippets: + if os.path.isdir(snip): + continue snip_file = open(snip) data = snip_file.read() snip_file.close() |