Werk #16885: Crash: liebert_maintenance: ValueError("Cannot render negative timespan") when time is overdue
| Component | Checks & agents | ||||||
| Title | Crash: liebert_maintenance: ValueError("Cannot render negative timespan") when time is overdue | ||||||
| Date | May 21, 2024 | ||||||
| Level | Trivial Change | ||||||
| Class | Bug Fix | ||||||
| Compatibility | Compatible - no manual interaction needed | ||||||
| Checkmk versions & editions |
|
liebert_maintenance check would crash with ValueError("Cannot render negative timespan") if the
value for "Next maintenance" is in the past.
This change now renders positive and negative values differently (also only printing days) adding
'overdue' if date for next maintenance is located in the past.