Werk #10840: Fix evaluation of time specific parameters if default parameters are tuple based
Component | Checks & agents |
Title | Fix evaluation of time specific parameters if default parameters are tuple based |
Date | Mar 18, 2020 |
Checkmk Edition | Checkmk Raw (CRE) |
Checkmk Version | 1.5.0p25 1.6.0p11 2.0.0i1 |
Level | Trivial Change |
Class | Bug Fix |
Compatibility | Compatible - no manual interaction needed |
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.