Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 89f25230399c7279f87952b48a64048b5b6284e1
https://github.com/tribe29/checkmk/commit/89f25230399c7279f87952b48a64048b5…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2020-04-21 (Tue, 21 Apr 2020)
Changed paths:
M cmk/base/api/agent_based/register/check_plugins_legacy.py
M cmk/base/api/agent_based/utils.py
M cmk/base/api/agent_based/value_store.py
M tests-py3/unit/cmk/base/api/agent_based/test_utils_value_store.py
Log Message:
-----------
CheckAPI: value store: various fixes
* the value store raises an exception when accessed outside of its scope
* avoid recursion when implementing dunder methods
* we provide a context manager to enter/exit the scope
* stored wraps are only raised for the legacy code
Change-Id: I6523e8183f64d2b3ed97b00d9285096e56ddf131