Module: check_mk
Branch: master
Commit: a6cbcb37825acc798c1e05e9698d53a4c6410775
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a6cbcb37825acc…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Mon May 23 14:41:58 2011 +0200
Fix Apache/WATO-Bug (plugins dir missing)
---
web/htdocs/wato.py | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 4805038..5f5f259 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -1850,9 +1850,10 @@ extra_buttons = [
# Load all wato plugins
plugins_path = defaults.web_dir + "/plugins/wato"
-for fn in os.listdir(plugins_path):
- if fn.endswith(".py"):
- execfile(plugins_path + "/" + fn)
+if os.path.exists(plugins_path):
+ for fn in os.listdir(plugins_path):
+ if fn.endswith(".py"):
+ execfile(plugins_path + "/" + fn)
if defaults.omd_root:
local_plugins_path = defaults.omd_root +
"/local/share/check_mk/web/plugins/wato"