Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: b7b424d872aba3bf18e096edd5a10f2c7c946485
https://github.com/tribe29/checkmk/commit/b7b424d872aba3bf18e096edd5a10f2c7…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-11-18 (Wed, 18 Nov 2020)
Changed paths:
M cmk/base/check_utils.py
M cmk/base/checkers/_abstract.py
M cmk/base/checkers/_cache.py
M cmk/base/checkers/agent.py
M cmk/base/checkers/snmp.py
M cmk/snmplib/type_defs.py
M tests/unit/cmk/base/checkers/test_agent.py
M tests/unit/cmk/base/checkers/test_host_sections.py
Log Message:
-----------
PersistedSection typing: Remove unnecessary types
This patch improves the type hierarchy to PersistedSection by removing:
- {Agent,SNMP,T}PersistedSection
- {Agent,SNMP,T}PersistedSections
The hierarchy was duplicated for the Agent and for SNMP. The
duplication then obscured the actual differences and parametrization of
the types to the users, eventually leading to more duplication.
The intent of the code is also clearer now that the user has to
explicitly parametrize the PersistedSection type.
CMK-6362
Change-Id: Ia6d00b94b43b42fe217b6597e40a7d63c57fbb78