Werk #16819: Wrong and incomplete type annotations in agent based API v2

Komponente Checks & agents
Titel Wrong and incomplete type annotations in agent based API v2
Datum 02.06.2024
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen
Checkmk versions & editions
2.4.0b1 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)
2.3.0p5 Checkmk Raw (CRE), Checkmk Enterprise (CEE), Checkmk Cloud (CCE), Checkmk MSP (CME)

This change only affects plugin developers using the API cmk.agent_based.v2 in conjunction with static type checkers.

For section plugins the type annotations for host label functions where wrong and incomplete. The order of the arguments was swapped and the overload allowing to implement host label functions with parameter merge type "ALL" was missing, resulting in flase positives in the linters report.

Zur Liste aller Werks