Module: check_mk
Branch: master
Commit: 1f31c3e25f82235569b088a9d10b2ee33775c2ce
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1f31c3e25f8223…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Mar 4 11:44:29 2015 +0100
Move convert_legacy_configuration() to central entry point
---
modules/notify.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/notify.py b/modules/notify.py
index 1faf011..45dd81d 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -145,6 +145,8 @@ Available commands:
# keepalive mode (used by CMC), sends out one notifications from
# several possible sources or sends out all ripe bulk notifications.
def do_notify(args):
+ convert_legacy_configuration()
+
global notify_mode, notification_logging
if notification_logging == 0:
notification_logging = 1 # transform deprecated value 0 to 1
@@ -230,8 +232,6 @@ def notify_notify(raw_context, analyse=False):
if not analyse:
store_notification_backlog(raw_context)
- convert_legacy_configuration()
-
notify_log("----------------------------------------------------------------------")
if analyse:
notify_log("Analysing notification context with %s variables" %
len(raw_context))