Module: check_mk
Branch: master
Commit: 9ba8bda8a28930d2911a382087704409da3c2eb3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=9ba8bda8a28930…
Author: Tom Baerwinkel <tb(a)mathias-kettner.de>
Date: Wed Oct 18 09:23:00 2017 +0200
Swap expressions to avoid error when checking if a notification context has to be split
Change-Id: Ib3de07bb217642547faadbbc876945b1c5b8b920
---
cmk_base/notify.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/cmk_base/notify.py b/cmk_base/notify.py
index 2f0ed09..95035de 100644
--- a/cmk_base/notify.py
+++ b/cmk_base/notify.py
@@ -524,8 +524,9 @@ def notify_rulebased(raw_context, analyse=False):
plugin_context = create_plugin_context(raw_context, params)
rbn_add_contact_information(plugin_context, contacts)
- split_contexts = (params.get("disable_multiplexing") or
- plugin not in ["", "mail",
"asciimail"] or
+ split_contexts = (plugin not in ["", "mail",
"asciimail"] or
+ # params can be a list (e.g. for custom notificatios)
+ params.get("disable_multiplexing") or
bulk)
if not split_contexts:
plugin_contexts = [plugin_context]