Module: check_mk
Branch: master
Commit: 73743faa8d079d5b14f182309264a67a607d57ab
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=73743faa8d079d…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Wed Aug 17 13:06:29 2016 +0200
fixed exception on adding new host tags, side effect of wk3721
---
web/htdocs/wato.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index 6e3277d..1fff9f4 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -14802,7 +14802,8 @@ def save_changed_custom_attrs(all_attrs, what):
def declare_custom_host_attrs():
# First remove all previously registered custom host attributes
for attr_name in g_host_attribute.keys():
- if attr_name not in builtin_host_attribute_names:
+ if attr_name not in builtin_host_attribute_names and not\
+ attr_name.startswith("tag_"):
undeclare_host_attribute(attr_name)
# now declare the custom attributes