Module: check_mk
Branch: master
Commit: 530508af21655bdc882174342af939d5f766c975
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=530508af21655b…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Jan 22 09:42:40 2014 +0100
Omit comments after # from notification plugin name
---
web/htdocs/wato.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index d1a9bcc..e787a0a 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8856,7 +8856,7 @@ def load_notification_scripts_from(adir):
lines.next()
line = lines.next().strip()
if line.startswith("#"):
- title = line.lstrip("#").strip()
+ title = line.lstrip("#").strip().split("#",
1)[0]
except:
pass
scripts[entry] = title