Branch: refs/heads/master
Home:
https://github.com/Checkmk/checkmk
Commit: 321bf4459fa2017be8624e21952feac117821ead
https://github.com/Checkmk/checkmk/commit/321bf4459fa2017be8624e21952feac11…
Author: Moritz Kiemer <moritz.kiemer(a)checkmk.com>
Date: 2023-11-22 (Wed, 22 Nov 2023)
Changed paths:
M cmk/base/api/agent_based/register/_discover.py
M cmk/base/api/agent_based/register/export.py
M cmk/base/api/agent_based/register/section_plugins.py
M packages/cmk-agent-based/cmk/agent_based/v2/_plugins.py
M tests/unit/cmk/base/api/agent_based/register/test_section_plugins.py
Log Message:
-----------
agent_based.v2: change host_label_function validation
We improve the type annotations and only do the
runtime validation if run in debug mode.
This improves performance while still providing
feedback for the developer, if they seek it.
Using the overload decorator is certainly not the
most elegant solution -- but it is better than
runtime inspection.
Change-Id: I6666baf8a2eda39085977a33e480b5dea9c33c6d