Werk #22131 · Aug 17, 26
Fix crash when removing downtimes in some views
Using Remove downtimes on Monitor > Synthetic monitoring > Synthetic
Monitoring tests failed with a crash report showing
KeyError: 'service_downtimes', and the downtimes were not removed.
The command took the downtime IDs from the table row, which only carries the columns a view actually displays. That view shows no downtime column, so the IDs were not there -- unlike the host and service views, where they are.
The IDs are now looked up for the affected host or service whenever the view does not supply them, so Remove downtimes works on every view that offers it. Other views without a downtime column were affected in the same way.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Multisite
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p12All Editions
- 2.4.0p36All Editions