Module: check_mk
Branch: master
Commit: e1530f2a62f1dd0eb094098a170d98832a3b653a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=e1530f2a62f1dd…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 22 19:49:26 2012 +0100
WATO: do not bail out if conf.d/wato is missing
---
web/htdocs/wato.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 91a2022..7cbd719 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -456,7 +456,7 @@ def load_folder(dir, name="", path="",
parent=None, childs = True):
folder[".siteid"] = default_site()
# Now look subdirectories
- if childs:
+ if childs and os.path.exists(dir):
for entry in os.listdir(dir):
if entry[0] == '.': # entries '.' and '..'
continue