Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 3d37e2e35567c10732e09a10836dd0c1597d72c0
https://github.com/tribe29/checkmk/commit/3d37e2e35567c10732e09a10836dd0c15…
Author: Mathias Laurin <mathias.laurin(a)tribe29.com>
Date: 2020-08-20 (Thu, 20 Aug 2020)
Changed paths:
M cmk/base/automations/check_mk.py
Log Message:
-----------
automations/check_mk: merge loops
The code was iterating twice over the same collection in a few lines.
This is less efficient, harder to understand, and harder to
modify/maintain. This patch merges the loops.
This is further required to remove the `run_raw()` call. Removing the
`run_raw()` call is necessary to complete the split between fetchers and
checkers: Indeed, there should not be a checkers method that produces
the raw data.
CMK-5243
Change-Id: I4041f17c73d00e3a66ed173b53d85c29586da56f