summaryrefslogtreecommitdiffstats
path: root/cobbler/action_enchant.py
diff options
context:
space:
mode:
authorMichael DeHaan <mdehaan@redhat.com>2006-10-23 13:18:40 -0400
committerJim Meyering <jim@meyering.net>2006-10-23 13:18:40 -0400
commit5a268514c627deb6f84af7bf3ca28dcc8bba61c7 (patch)
tree328b1c6dc44905249d51901e24ebe919651ef616 /cobbler/action_enchant.py
parenta42f7180e5c028942b8cbb1261a45bc17d09c5dc (diff)
downloadthird_party-cobbler-5a268514c627deb6f84af7bf3ca28dcc8bba61c7.tar.gz
third_party-cobbler-5a268514c627deb6f84af7bf3ca28dcc8bba61c7.tar.xz
third_party-cobbler-5a268514c627deb6f84af7bf3ca28dcc8bba61c7.zip
Fix bug where koan_path can be blank or a directory.
Diffstat (limited to 'cobbler/action_enchant.py')
-rw-r--r--cobbler/action_enchant.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/cobbler/action_enchant.py b/cobbler/action_enchant.py
index b0ca495..610f952 100644
--- a/cobbler/action_enchant.py
+++ b/cobbler/action_enchant.py
@@ -59,7 +59,7 @@ class Enchant:
"""
koan = os.path.basename(self.settings.koan_path)
where_is_koan = os.path.join(self.settings.webdir,os.path.basename(koan))
- if not os.path.exists(where_is_koan):
+ if not os.path.exists(where_is_koan) or os.path.isdir(where_is_koan):
raise cexceptions.CobblerException("enchant_failed","koan is missing")
try: