Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: ca65147b8767022679cf384c6b26c807a9da21b4
https://github.com/tribe29/checkmk/commit/ca65147b8767022679cf384c6b26c807a…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-10-23 (Fri, 23 Oct 2020)
Changed paths:
M cmk/base/checkers/_checkers.py
M cmk/base/inventory.py
Log Message:
-----------
Expand and remove SourceResult
`SourceResult` actually obscures the type and makes it hard to use.
Indeed, our sources may deliver three different types of results
(simplified, these are):
- Source.fetch() -> RawData
- Source.parse() -> HostSections
- Source.summarize() -> ServiceCheckResult
These must be obtained in order but there is no real hierarchy between
them. Calling `SourceResult` a tuple of `Source` and `HostSections`
may therefore confuse the reader.
Change-Id: I05225fbc167f260e0804c26a986ab59e6e6c4da7