Module: check_mk
Branch: master
Commit: 1d3fcbf710144aca4298183f8531ad76e30752b4
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=1d3fcbf710144a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 19 14:26:36 2018 +0100
5849 FIX Fixed visibility of "Data sources" properties when editing folders
Werk #5535 introduced a new way the data sources (agent, snmp, ...) of hosts are
configured.
The new attributes were not editable in WATO folders at all.
Change-Id: I2ebab9f534d3e20d44b994bac0a4b6a90935236d
---
.werks/5849 | 11 +++++++++++
web/htdocs/wato.py | 5 ++++-
2 files changed, 15 insertions(+), 1 deletion(-)
diff --git a/.werks/5849 b/.werks/5849
new file mode 100644
index 0000000..ee39c13
--- /dev/null
+++ b/.werks/5849
@@ -0,0 +1,11 @@
+Title: Fixed visibility of "Data sources" properties when editing folders
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.5.0i4
+Date: 1519046689
+Class: fix
+
+Werk #5535 introduced a new way the data sources (agent, snmp, ...) of hosts are
configured.
+The new attributes were not editable in WATO folders at all.
diff --git a/web/htdocs/wato.py b/web/htdocs/wato.py
index ee98de1..2d81fe9 100644
--- a/web/htdocs/wato.py
+++ b/web/htdocs/wato.py
@@ -17532,7 +17532,10 @@ def configure_attributes(new, hosts, for_what, parent,
myself=None, without_attr
if depends_on_roles:
dependency_mapping_roles[attrname] = depends_on_roles
- if not depends_on_tags and not depends_on_roles:
+ if for_what not in [ "host", "cluster" ]:
+ topic_is_volatile = False
+
+ elif not depends_on_tags and not depends_on_roles:
# One attribute is always shown -> topic is always visible
topic_is_volatile = False
else: