Module: check_mk
Branch: master
Commit: 97136fc2d0f09799914842d0ff6f5065df4e91cc
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=97136fc2d0f097…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Nov 6 16:04:17 2017 +0100
Fixed host tag visibility switching for tags not in default tag topic
Change-Id: I4085a9c28326b6177d6e5da6286fcf324236e321
---
web/htdocs/wato.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 1822350..f6bb0b5 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -17274,7 +17274,7 @@ def configure_attributes(new, hosts, for_what, parent,
myself=None, without_attr
inherited_value = container.attributes()[attrname]
has_inherited = True
- if topic == _("Host tags"):
+ if isinstance(attr, watolib.HostTagAttribute):
inherited_tags["attr_%s" % attrname] =
'|'.join(attr.get_tag_list(inherited_value))
break
@@ -17285,7 +17285,7 @@ def configure_attributes(new, hosts, for_what, parent,
myself=None, without_attr
inherited_from = _("Default value")
inherited_value = attr.default_value()
# Also add the default values to the inherited values dict
- if topic == _("Host tags"):
+ if isinstance(attr, watolib.HostTagAttribute):
inherited_tags["attr_%s" % attrname] =
'|'.join(attr.get_tag_list(inherited_value))
# Checkbox for activating this attribute