Werk #22549 · Oct 5, 26
Redfish PSU: accept voltage with unit
Some Redfish BMCs report the line input voltage of a power supply as
text with a unit, for example 220V, instead of a number. The
"Power supply" service then crashed with
ValueError: could not convert string to float: '220V'.
A trailing "V" is now accepted, so such power supplies report their input voltage as usual. Any other value that is not a number is shown as UNKNOWN with the value the device sent, while input power, output power and capacity are still reported.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 3.0.0b1Not yet releasedAll Editions
- 2.5.0p16All Editions
- 2.4.0p39All Editions