Module: check_mk
Branch: master
Commit: b324b6c4fa9e14e522873fc4e1fb13d83d8b823c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=b324b6c4fa9e14…
Author: Simon Betz <si(a)mathias-kettner.de>
Date: Fri Oct 21 09:21:58 2016 +0200
3961 FIX fixed error sections handling if parse function is available
---
.werks/3961 | 10 ++++++++++
ChangeLog | 1 +
modules/check_mk_base.py | 2 +-
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/3961 b/.werks/3961
new file mode 100644
index 0000000..30f4f96
--- /dev/null
+++ b/.werks/3961
@@ -0,0 +1,10 @@
+Title: fixed error sections handling if parse function is available
+Level: 1
+Component: checks
+Class: fix
+Compatible: compat
+State: unknown
+Version: 1.4.0i2
+Date: 1477033811
+
+
diff --git a/ChangeLog b/ChangeLog
index ff8b9e1..abf0e19 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -35,6 +35,7 @@
* 3828 FIX: agent_netapp: improved error reporting. fixed exception when
snapmirror-get-status returns no values
* 3966 FIX: apc_symmetra raritan_emx: Fixed wrong include
"temperature.includes"...
* 3829 FIX: Skype for Business checks: refactored most of the checks...
+ * 3961 FIX: fixed error sections handling if parse function is available
Multisite:
* 3959 Two new filters for the comment view: author and comment text field
diff --git a/modules/check_mk_base.py b/modules/check_mk_base.py
index 13aaba0..3b81110 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1388,7 +1388,7 @@ def do_all_checks_on_host(hostname, ipaddress, only_check_types =
None, fetch_ag
error_sections.add(infotype)
return False
- if info or info == []:
+ if info or info in [ [], {} ]:
try:
check_function = check_info[checkname]["check_function"]
except: