Module: check_mk
Branch: master
Commit: 21f049d809ef451b62f436a12d1637c3c8536758
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=21f049d809ef45…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Mar 5 13:13:41 2018 +0100
5883 FIX Fixed broken conversion of customized agent tag group (Regression #5257)
Change-Id: I031f09d574e915bbd3ecd963d4d912b21bb4fd06
---
.werks/5883 | 10 ++++++++++
web/htdocs/watolib.py | 10 ++++++++++
2 files changed, 20 insertions(+)
diff --git a/.werks/5883 b/.werks/5883
new file mode 100644
index 0000000..6289fb4
--- /dev/null
+++ b/.werks/5883
@@ -0,0 +1,10 @@
+Title: Fixed broken conversion of customized agent tag group (Regression #5257)
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.5.0i4
+Date: 1520251998
+Class: fix
+
+
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index 3bdaa27..7bfa980 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -6152,6 +6152,16 @@ def configured_aux_tags():
def is_builtin_host_tag_group(tag_group_id):
+ # Special handling for the agent tag group. It was a tag group created with
+ # the sample WATO configuration until version 1.5x. This means users could've
+ # customized the group. In case we find such a customization we treat it as
+ # not builtin tag group.
+ if tag_group_id == "agent":
+ for tag_group in config.wato_host_tags:
+ if tag_group[0] == tag_group_id:
+ return False
+ return True
+
for tag_group in builtin_host_tags:
if tag_group[0] == tag_group_id:
return True