Module: check_mk
Branch: master
Commit: 62a8d4e26ded48d0a8b7de16306bc1555c205a3c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=62a8d4e26ded48…
Author: Roland Halbig <rh(a)mathias-kettner.de>
Date: Fri Oct 28 12:15:56 2016 +0200
Fixed views/painters.py so that it works with new HTML class.
---
web/plugins/views/painters.py | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/web/plugins/views/painters.py b/web/plugins/views/painters.py
index 0bd6d82..91b01a9 100644
--- a/web/plugins/views/painters.py
+++ b/web/plugins/views/painters.py
@@ -295,10 +295,14 @@ def process_multisite_icons(what, row, tags, custom_vars,
toplevel):
raise
result = ("alert", "%s" % e)
- if result == None:
+ if result is None:
continue
- elif type(result) in [str,unicode]:
+ elif type(result) in [str, unicode, HTML]:
+
+ if isinstance(result, HTML):
+ result = str(result)
+
# TODO: This is handling the deprecated API with 1.2.7. Remove this
one day.
if result[0] == '<':
# seems like an old format icon (html code). In regular
rendering