Module: check_mk
Branch: master
Commit: f147e977f81960b82475d0be064bc67e77aed8e4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f147e977f81960…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Apr 2 15:23:50 2019 +0200
Fixed auxiliary tag filter after recent changes
Change-Id: I0a2c0553938ce2e202eef4216ebc283c9eb72a14
---
cmk/gui/plugins/visuals/filters.py | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/cmk/gui/plugins/visuals/filters.py b/cmk/gui/plugins/visuals/filters.py
index c3a3e93..d31ca37 100644
--- a/cmk/gui/plugins/visuals/filters.py
+++ b/cmk/gui/plugins/visuals/filters.py
@@ -2519,12 +2519,10 @@ class FilterHostAuxTags(Filter):
Filter.__init__(self, info='host', htmlvars=htmlvars, link_columns=[])
- self.auxtags = config.wato_aux_tags
-
def display(self):
+ aux_tag_choices = [("", "")] +
config.tags.aux_tag_list.get_choices()
for num in range(self.count):
- html.dropdown(
- '%s_%d' % (self.prefix, num), [("", "")] +
self.auxtags, ordered=True, class_='neg')
+ html.dropdown('%s_%d' % (self.prefix, num), aux_tag_choices,
ordered=True, class_='neg')
html.open_nobr()
html.checkbox('%s_%d_neg' % (self.prefix, num), False,
label=_("negate"))
html.close_nobr()
@@ -2547,8 +2545,8 @@ class FilterHostAuxTags(Filter):
return ''
def _host_auxtags_filter(self, tag, negate):
- return "Filter: host_tags %s '%s' '%s'" % (
- "!=" if negate else "=", livestatus.lqencode(tag),
livestatus.lqencode(tag))
+ return "Filter: host_tags %s %s %s" % ("!=" if negate else
"=", livestatus.lqencode(tag),
+ livestatus.lqencode(tag))
def double_height(self):
return True