Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 08288210213519c411c7e54b72ac13b7049738c6
https://github.com/tribe29/checkmk/commit/08288210213519c411c7e54b72ac13b70…
Author: Moritz Kiemer <moritz.kiemer(a)tribe29.com>
Date: 2021-05-03 (Mon, 03 May 2021)
Changed paths:
A .werks/12511
M cmk/gui/metrics.py
Log Message:
-----------
12511 FIX Any custom Perf-O-Meter destroyed all Perf-O-Meters
Users can implement their own Perf-O-Meters in
<i>local/share/check_mk/web/plugins/perfometer</i>.
Whenever a user did that in Checkmk 2.0.0 to 2.0.0p4,
<b>all</b> Perf-O-Meters vanished. Instead the error
message "Exception: _required_names" was displayed.
Internal note:
When loading the shipped 'metric' plugins in cmk.gui.metrics
that also includes the shipped perf-o-meters.
Since *local* perf-o-meters are in a differently named
directory, we must also explicitly load "perfometer".
On the other hand: We must not (re-)load the perf-o-meters
without post-processing them, otherwise we run into
the "KeyError: '_required_names'".
Change-Id: I9ff7544858fab978d5c3224d9dfe1d300e5fc9bb