Module: check_mk
Branch: master
Commit: fe8aeafe32f7bdd7d76ee298c37be1a72f7d9d5a
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fe8aeafe32f7bd…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Wed Feb 3 10:45:02 2016 +0100
When a timeperiod check in Check_MK modules fails now assume active, not inactive
This is e.g. used during notifications. If for any reason the core does not work
during a notification then we better assume that all timeperiods are active so
in this error case users will rather get too many notifications than too few.
---
modules/check_mk_base.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 67c20ac..dcc3d20 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -2283,7 +2283,7 @@ def check_timeperiod(timeperiod):
raise
else:
# If the query is not successful better skip this check then fail
- return False
+ return True
return timeperiod not in g_inactive_timerperiods