Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: d6524b805dde0b713c2c4e62b9874ba08d627a3f
https://github.com/tribe29/checkmk/commit/d6524b805dde0b713c2c4e62b9874ba08…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-07-07 (Tue, 07 Jul 2020)
Changed paths:
M cmk/base/checking.py
M cmk/base/data_sources/_data_sources.py
M cmk/base/data_sources/host_sections.py
M cmk/base/discovery.py
M cmk/base/inventory.py
M tests-py3/unit/cmk/base/data_sources/test_host_sections.py
Log Message:
-----------
Make MHS API more consistent
Now that we have established that MHS is a mapping, we consistently pass
the key as the first argument to its methods. The added consistency
simplifies the class and shows its purpose better.
The remaining methods that do not take HostKey are most likely not where
they should be. We make this clear by making them static and by
grouping them at the end of the class definition
CMK-4838
Change-Id: I0602b7611394b29601970fa6d22a610d620ed45c