Module: check_mk
Branch: master
Commit: 82d584643aa52491040c63c8093d42fa9db95766
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=82d584643aa524…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Oct 29 13:42:12 2014 +0100
Fixed exception when trying to configure legacy ascii emails with bulk notifications
---
web/htdocs/wato.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 18dfd15..4cc42de 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -8579,14 +8579,15 @@ def validate_notification_rule(rule, varprefix):
_("It does not make sense to add a bulk configuration for cancelling
rules."))
if "bulk" in rule:
- if rule["notify_plugin"]:
+ if rule["notify_plugin"][0]:
info = load_notification_scripts()[rule["notify_plugin"][0]]
if not info["bulk"]:
raise MKUserError(varprefix + "_p_notify_plugin",
_("The notification script %s does not allow bulking.") %
info["title"])
else:
raise MKUserError(varprefix + "_p_notify_plugin",
- _("The plain emails currently do not support bulking."))
+ _("Legacy ASCII Emails do not support bulking. You can either
disable notification "
+ "bulking or choose another notification plugin which allows
bulking."))
def render_notification_rules(rules, userid="", show_title=False,
show_buttons=True,