Module: check_mk
Branch: master
Commit: 6532c46c0be16594367e1c42787ee2e52d76f7a5
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6532c46c0be165…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Jan 13 08:36:43 2017 +0100
Valuespec type display is only rendered to HTML when enabled
Change-Id: Ia046323ffbd8c441c075df71583dbbcf5c4ff2fc
---
web/htdocs/valuespec.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/valuespec.py b/web/htdocs/valuespec.py
index 79c1793..9581bef 100644
--- a/web/htdocs/valuespec.py
+++ b/web/htdocs/valuespec.py
@@ -150,7 +150,9 @@ class ValueSpec(object):
def classtype_info(self):
superclass = " ".join(base.__name__ for base in
self.__class__.__bases__)
- html.div("Check_MK-Type: %s %s" % (superclass, type(self).__name__),
class_="legend", style="display:none;" if not self.debug_display else
None)
+ if not self.debug_display:
+ return
+ html.div("Check_MK-Type: %s %s" % (superclass, type(self).__name__),
class_="legend")