Module: check_mk
Branch: master
Commit: a68f01ec8da0e1a512531474271b7f67db78efec
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=a68f01ec8da0e1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Feb 19 14:00:27 2018 +0100
5848 FIX Fixed broken inheritance of agent type set on folders (regression in 1.5.0i2)
When the "agent type" property was set on a folder, this setting was not correctly
inherited to the hosts. This broke with werk #5535.
Change-Id: I0054882c070d4d2758c72395338a0dc9eb6aa081
---
.werks/5848 | 11 +++++++++++
web/htdocs/watolib.py | 2 +-
2 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/.werks/5848 b/.werks/5848
new file mode 100644
index 0000000..b4345d2
--- /dev/null
+++ b/.werks/5848
@@ -0,0 +1,11 @@
+Title: Fixed broken inheritance of agent type set on folders (regression in 1.5.0i2)
+Level: 1
+Component: wato
+Compatible: compat
+Edition: cre
+Version: 1.5.0i4
+Date: 1519045062
+Class: fix
+
+When the "agent type" property was set on a folder, this setting was not correctly
+inherited to the hosts. This broke with werk #5535.
diff --git a/web/htdocs/watolib.py b/web/htdocs/watolib.py
index f650544..a1ed619 100644
--- a/web/htdocs/watolib.py
+++ b/web/htdocs/watolib.py
@@ -1582,7 +1582,7 @@ class CREFolder(BaseFolder):
def _load(self):
wato_info = self._load_wato_info()
self._title = wato_info.get("title", self._fallback_title())
- self._attributes = wato_info.get("attributes", {})
+ self._attributes = self._transform_old_agent_type_in_attributes(wato_info.get("attributes", {}))
self._locked = wato_info.get("lock", False)
self._locked_subfolders = wato_info.get("lock_subfolders", False)
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:
Module: check_mk
Branch: master
Commit: 4654697f9a552a35a0edd2d385403538e6cb730d
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=4654697f9a552a…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Feb 20 08:19:21 2018 +0100
Tests: Selected version was not propagated to the site test process
Change-Id: I602421f83c3170a98d4ec6203b66ae53bb96b3c2
---
tests/testlib/__init__.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/testlib/__init__.py b/tests/testlib/__init__.py
index 28966b5..a6c99ea 100644
--- a/tests/testlib/__init__.py
+++ b/tests/testlib/__init__.py
@@ -745,7 +745,7 @@ class Site(object):
# Check_MK is now the site, so all tests that somehow rely on the environment should be
# executed this way.
def switch_to_site_user(self):
- env_var_str = ""
+ env_var_str = "VERSION='%s' " % self.version._version
if "WORKSPACE" in os.environ:
env_var_str = "WORKSPACE='%s' " % os.environ["WORKSPACE"]