Module: check_mk
Branch: master
Commit: 6eb11876bfe82c6f0319de2913954c4f757f52ce
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6eb11876bfe82c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Sun Mar 10 12:00:04 2019 +0100
Show "locked attributes" and "locked by" not as folder attributes
Change-Id: I86a7cb2690685f8d2ac8c61a339ebd1a0ef40c10
---
cmk/gui/plugins/wato/builtin_attributes.py | 4 ++--
tests/unit/cmk/gui/watolib/test_host_attributes.py | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/cmk/gui/plugins/wato/builtin_attributes.py
b/cmk/gui/plugins/wato/builtin_attributes.py
index dd19ce8..2da8d96 100644
--- a/cmk/gui/plugins/wato/builtin_attributes.py
+++ b/cmk/gui/plugins/wato/builtin_attributes.py
@@ -742,7 +742,7 @@ class HostAttributeLockedBy(ABCHostAttributeValueSpec):
return True
def show_in_folder(self):
- return True
+ return False
def show_in_host_search(self):
return True
@@ -797,7 +797,7 @@ class HostAttributeLockedAttributes(ABCHostAttributeValueSpec):
return True
def show_in_folder(self):
- return True
+ return False
def show_in_host_search(self):
return False
diff --git a/tests/unit/cmk/gui/watolib/test_host_attributes.py
b/tests/unit/cmk/gui/watolib/test_host_attributes.py
index b233496..0e7777d 100644
--- a/tests/unit/cmk/gui/watolib/test_host_attributes.py
+++ b/tests/unit/cmk/gui/watolib/test_host_attributes.py
@@ -95,7 +95,7 @@ expected_attributes = {
'depends_on_tags': [],
'editable': False,
'from_config': False,
- 'show_in_folder': True,
+ 'show_in_folder': False,
'show_in_form': True,
'show_in_host_search': False,
'show_in_table': False,
@@ -108,7 +108,7 @@ expected_attributes = {
'depends_on_tags': [],
'editable': False,
'from_config': False,
- 'show_in_folder': True,
+ 'show_in_folder': False,
'show_in_form': True,
'show_in_host_search': True,
'show_in_table': False,