Module: check_mk
Branch: master
Commit: d8fe4bccae347885d5c5ef6a505399dcaacc6a65
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=d8fe4bccae3478…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Fri Jan 26 10:44:02 2018 +0100
5257 FIX Fixed broken creation of new tag groups and auxilary tags
Change-Id: I4eb2ec89638c20380c00294d240817ca86c36466
---
.werks/5257 | 10 ++++++++++
web/htdocs/watolib.py | 14 ++++++--------
2 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/.werks/5257 b/.werks/5257
new file mode 100644
index 0000000..e6c8541
--- /dev/null
+++ b/.werks/5257
@@ -0,0 +1,10 @@
+Title: Fixed broken creation of new tag groups and auxilary tags
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.5.0i3
+Date: 1516959691
+Class: fix
+
+
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index b2e8c2d..f650544 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -6139,20 +6139,18 @@ def configured_aux_tags():
return get_effective_aux_tags(config.wato_aux_tags)
-# When a tag group is not defined in the users tag groups,
-# it must be a builtin tag group
def is_builtin_host_tag_group(tag_group_id):
- for tag_group in config.wato_host_tags:
+ for tag_group in builtin_host_tags:
if tag_group[0] == tag_group_id:
- return False
- return True
+ return True
+ return False
def is_builtin_aux_tag(taggroup_id):
- for builtin_taggroup in config.wato_aux_tags:
+ for builtin_taggroup in builtin_aux_tags:
if builtin_taggroup[0] == taggroup_id:
- return False
- return True
+ return True
+ return False
def save_hosttags(hosttags, auxtags):