Module: check_mk
Branch: master
Commit: a903c0f3c437dc1f71eaf32c70d04157850fe5c4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a903c0f3c437dc…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Tue Feb 12 15:34:07 2013 +0100
mknotifyd: fixed handling notification (plugin) return code
---
modules/notify.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/notify.py b/modules/notify.py
index 8ede4bd..cb52b67 100644
--- a/modules/notify.py
+++ b/modules/notify.py
@@ -265,9 +265,9 @@ def process_context(context, write_into_spoolfile, use_method =
None):
method = ('flexible', [found_plugin])
if type(method) == tuple and method[0] == 'flexible':
- notify_flexible(context, method[1], write_into_spoolfile)
+ return notify_flexible(context, method[1], write_into_spoolfile)
else:
- notify_via_email(context, write_into_spoolfile)
+ return notify_via_email(context, write_into_spoolfile)
except Exception, e:
notify_log("ERROR: %s\n%s" % (e, format_exception()))
sys.stderr.write("ERROR: %s\n" % e)