Skip to content

Commit

Permalink
Fix adding aux tags to host tag conditions
Browse files Browse the repository at this point in the history
Change-Id: Ia1b7e3c1ef241a2740ed0ade602f3f085ccc152c
  • Loading branch information
LarsMichelsen committed Jun 17, 2019
1 parent c0f3782 commit cc8bde6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cmk/gui/plugins/wato/utils/__init__.py
Expand Up @@ -1893,8 +1893,7 @@ def _get_aux_tag_choice(self, aux_tag):
Tuple(
title=aux_tag.choice_title,
elements=[
FixedValue(_u(aux_tag.choice_title)),
self._is_or_is_not(),
self._is_or_is_not(label=aux_tag.choice_title + " ",),
FixedValue(
aux_tag.id,
title=_u(aux_tag.title),
Expand All @@ -1916,12 +1915,12 @@ def _tag_choice(self, tag_group):
orientation="horizontal",
)

def _is_or_is_not(self):
def _is_or_is_not(self, **kwargs):
return DropdownChoice(
choices=[
("is", _("is")),
("is_not", _("is not")),
],)
], **kwargs)


class HostTagCondition(ValueSpec):
Expand Down

0 comments on commit cc8bde6

Please sign in to comment.