Module: check_mk
Branch: master
Commit: 906ceb51c16bd6ed36301b83728646378ab7797b
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=906ceb51c16bd6…
Author: Moritz Kiemer <mo(a)mathias-kettner.de>
Date: Mon Nov 12 12:09:37 2018 +0100
bring back: ignore empty status texts
Change-Id: I8c839b6b664d6d87d60d45f566ca3bcd1fd00715
---
cmk_base/checking.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cmk_base/checking.py b/cmk_base/checking.py
index 9af4b25..7d40784 100644
--- a/cmk_base/checking.py
+++ b/cmk_base/checking.py
@@ -463,7 +463,7 @@ def _sanitize_yield_check_result(result, is_snmp):
st, text, perf = _sanitize_tuple_check_result(subresult,
allow_missing_infotext=True)
status = cmk_base.utils.worst_service_state(st, status)
- if text != None:
+ if text:
infotexts.append(text + ["", "(!)", "(!!)",
"(?)"][st])
if perf != None: