Werk #18756 · Jul 8, 26
ups_bat_temp: Fix crash when UPS reports an empty battery temperature
Some UPS devices (e.g. the CS141 SNMP/WEB Adapter) report an empty value for the battery temperature. This caused the check to crash with "ValueError: invalid literal for int() with base 10: ''". The check now skips such devices instead of crashing.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p9All Editions
- 2.4.0p35All Editions