Module: check_mk
Branch: master
Commit: cd2f29c1be291e03303082cd9c9692e1dadb1be9
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=cd2f29c1be291e…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Aug 28 07:23:01 2017 +0200
Title of real time checks is now always unicode
Change-Id: I4c2d208f598dad7d067f0304380da9a3aa08a0d2
---
cmk_base/automations/check_mk.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/cmk_base/automations/check_mk.py b/cmk_base/automations/check_mk.py
index 16acced..daaa0c4 100644
--- a/cmk_base/automations/check_mk.py
+++ b/cmk_base/automations/check_mk.py
@@ -854,6 +854,7 @@ class AutomationGetRealTimeChecks(Automation):
rt_checks = []
for check_type, check in checks.check_info.items():
if check["handle_real_time_checks"]:
+ # TODO: Use cmk.man_pages module standard functions to read the title
title = check_type
try:
manfile = manuals.get(check_type)
@@ -863,7 +864,7 @@ class AutomationGetRealTimeChecks(Automation):
if cmk.debug.enabled():
raise
- rt_checks.append((check_type, "%s - %s" % (check_type,
title)))
+ rt_checks.append((check_type, "%s - %s" % (check_type,
title.decode("utf-8"))))
return rt_checks