Werk #10840: Fix evaluation of time specific parameters if default parameters are tuple based

Komponente Checks & agents
Titel Fix evaluation of time specific parameters if default parameters are tuple based
Datum 18.03.2020
Checkmk Edition Checkmk Raw (CRE)
Checkmk-Version 1.5.0p25 1.6.0p11 2.0.0i1
Level Kleine Änderung
Klasse Bugfix
Kompatibilität Kompatibel - benötigt kein manuelles Eingreifen

Old tuple based parameters may look like

NAME_default_levels = (90.0, 95.0)

In this case if time specific parameters are additionally configured and the check is executed outside of this time period then the evaluation of these parameters crashed

TypeError: cannot convert dictionary update sequence element #0 to a sequence

Now we simply ignore the (old) tuple-based parameters. A rule with a timespecifc parameter settings always has an implicit default parameter set, even if no timeperiod matches.

Zur Liste aller Werks