Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 5689faf260866bd8675b265574c5d179bb238c25
https://github.com/tribe29/checkmk/commit/5689faf260866bd8675b265574c5d179b…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-07-02 (Thu, 02 Jul 2020)
Changed paths:
M cmk/base/api/agent_based/register/check_plugins_legacy.py
M cmk/base/config.py
M cmk/base/discovery.py
M cmk/utils/check_utils.py
M tests-py3/integration/cmk/base/test_check_variables.py
M tests-py3/unit/cmk/base/api/agent_based/register/test_check_plugins_legacy.py
A tests-py3/unit/cmk/utils/test_utils_check_utils.py
Log Message:
-----------
CheckAPI: clean up parameter handling
Legacy check plugins could have all kinds of parameters as default paramters or discovery
results.
In the new API we validate that only a dictionary must be used, and we pass a read-only
variant
of it to the check function (TODO: and the discovery function). This requires a hack to
wrap/unwrap
the legacy parameters, to pass the validation.
Change-Id: Ia3cd96c3def9b3cf01324c1abc75f39af23a6fcc