Module: check_mk
Branch: master
Commit: 371f080b977b6f1b6ba46934ad815bb5c8392646
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=371f080b977b6f…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Wed Nov 21 14:28:49 2018 +0100
Dynamic configuration: Implement basic WATO modes
* Introduce the WATO simple modes base classes which assist managing a
collection of objects using WATO. A lot of WATO pages, which are
currently individually implemented, can be replaced with this generic
implementation in the future.
* Analog to the simple modes we have a simple abstract store class
which can be used for all cases where a collection of objects is stored
in a single config variable using our standard config path scheme.
* The DCD connections are now managed using these simple base classes
* The Password store is now managed using these simple base classes
CMK-1140
Change-Id: I4e4f79e2160bc1bc61a30a741957ad756a165f7c
---
cmk/gui/plugins/wato/__init__.py | 3 +
cmk/gui/plugins/wato/utils/__init__.py | 47 +---
cmk/gui/plugins/wato/utils/simple_modes.py | 397 +++++++++++++++++++++++++++++
cmk/gui/wato/pages/password_store.py | 218 ++++------------
cmk/gui/watolib.py | 104 ++++++--
tests/unit/cmk/gui/conftest.py | 13 +-
6 files changed, 547 insertions(+), 235 deletions(-)
Diff: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=371f080b97…
Module: check_mk
Branch: master
Commit: 23698a61672196f47e8220c2583a8aeff2615c7a
URL: http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=23698a61672196…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Nov 22 20:28:41 2018 +0100
Fixed rewrite of all host files during all page requests
Seems this was introduced during development of 1.6 for some
reason. Probably some kind of debug code that has been left
behind. It can clearly not be intended to rewrite all folder
files during each request.
Change-Id: I4365874ac5c1393a71519d3933c6cbe759872e70
---
cmk/gui/watolib.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/cmk/gui/watolib.py b/cmk/gui/watolib.py
index f92aa20..fe83244 100644
--- a/cmk/gui/watolib.py
+++ b/cmk/gui/watolib.py
@@ -3825,7 +3825,6 @@ def update_config_based_host_attributes():
declare_custom_host_attrs()
Folder.invalidate_caches()
- Folder.root_folder().rewrite_hosts_files()
def _clear_config_based_host_attributes():