Module: check_mk
Branch: master
Commit: 5259d02333cf569b1b12d06c459e083eddf9d722
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5259d02333cf56…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Jul 23 12:18:31 2015 +0200
Fixed UnicodeDecodeError when running cmk -nv
---
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 048e873..12e5497 100644
--- a/modules/check_mk_base.py
+++ b/modules/check_mk_base.py
@@ -1742,7 +1742,7 @@ def submit_check_result(host, servicedesc, result, sa,
cached_at=None, cache_int
p = ''
color = { 0: tty_green, 1: tty_yellow, 2: tty_red, 3: tty_magenta }[state]
print "%-20s %s%s%-56s%s%s" % (servicedesc.encode('utf-8'),
- tty_bold, color, infotext.split('\n')[0],
tty_normal, p)
+ tty_bold, color,
make_utf8(infotext.split('\n')[0]), tty_normal, p)
def submit_to_core(host, service, state, output, cached_at = None, cache_interval =
None):