Module: check_mk
Branch: master
Commit: 0bb709e5f1884c82460b51cc72edb5979bfb3608
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=0bb709e5f1884c…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Tue Mar 6 08:25:22 2018 +0100
Completely moved check variables to check contexts
* The check variables are not duplicated in the global context of
the checks.py anymore.
* The check variables still need to be added to the config.py and
default_config.py context for config loading. At the end of
the configuration loading these are unset in both namespaces
and stored in the relevant check contexts.
* Cleaned up side effects on config.py during check loading. The
loading of the checks does not modify the check variables in
the config.py nor default_config.py anymore.
Change-Id: I1d10d1f7fdc5f04cf22821754adfd3a54b04aee8
---
cmk_base/automations/check_mk.py | 2 +-
cmk_base/checks.py | 88 ++++++++++++++++++++++++++++------------
cmk_base/config.py | 28 ++++++-------
cmk_base/discovery.py | 15 ++++---
tests/cmk_base/test_checks.py | 6 ++-
5 files changed, 88 insertions(+), 51 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=0bb709e5f1…