Module: check_mk
Branch: master
Commit: fa8b95f0bd2e048a158c2d0da93f50a4d54e6013
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fa8b95f0bd2e04…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Dec 6 11:45:05 2016 +0100
Fixed notification rule editor that broke some days ago
---
modules/automation.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/automation.py b/modules/automation.py
index 1c8fb3e..1306d31 100644
--- a/modules/automation.py
+++ b/modules/automation.py
@@ -569,11 +569,12 @@ def automation_get_check_information():
for check_type, check in check_info.items():
try:
manfile = manuals.get(check_type)
+ # TODO: Use cmk.man_pages module standard functions to read the title
if manfile:
title = file(manfile).readline().strip().split(":",
1)[1].strip()
else:
title = check_type
- checks[check_type] = { "title" : title }
+ checks[check_type] = { "title" : title.decode("utf-8") }
if check["group"]:
checks[check_type]["group"] = check["group"]
checks[check_type]["service_description"] =
check.get("service_description","%s")