Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 4d724cce2c3a4dea653e452cabfcacb8aa8e04a7
https://github.com/tribe29/checkmk/commit/4d724cce2c3a4dea653e452cabfcacb8a…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2021-05-12 (Wed, 12 May 2021)
Changed paths:
M cmk/base/agent_based/checking/__init__.py
M cmk/base/agent_based/data_provider.py
M cmk/base/agent_based/discovery/__init__.py
M cmk/base/agent_based/inventory.py
M cmk/base/automations/check_mk.py
M cmk/base/core_nagios.py
M cmk/base/dump_host.py
M cmk/base/modes/check_mk.py
M cmk/base/sources/_abstract.py
M cmk/base/sources/_checkers.py
M cmk/base/sources/agent.py
M cmk/base/sources/fetcher_configuration.py
M cmk/base/sources/ipmi.py
M cmk/base/sources/piggyback.py
M cmk/base/sources/programs.py
M cmk/base/sources/snmp.py
M cmk/base/sources/tcp.py
M tests/unit/cmk/base/agent_based/test_data_provider_collect_host_sections.py
M tests/unit/cmk/base/sources/test_data_sources.py
M tests/unit/cmk/base/sources/test_ipmi_management_board_data_source.py
M tests/unit/cmk/base/sources/test_piggy_back_data_source.py
M tests/unit/cmk/base/sources/test_program_data_source.py
M tests/unit/cmk/base/sources/test_snmp_data_source.py
M tests/unit/cmk/base/sources/test_tcp_data_source.py
M tests/unit/cmk/base/test_automations_check_mk.py
M tests/unit/cmk/base/test_modes_check_mk.py
Log Message:
-----------
Make source list creation independent of Mode
The creation of the list of sources is indeed indendant of the Mode.
This patch reflects this fact in the type system.
The resulting API for the `Source` is now consistent with
the Fetchers API, cf. Fetcher.fetch(Mode) => Source.fetch(Mode) and
Summarizer.summarize(HostConfig, *, Mode) =>
Source.summarize(HostConfig, *, Mode).
This is a mechanical change performed with the help of mypy.
Change-Id: I2c35874ba506eaca937eed16df1d6c9bf2f1a80f