Werk #17883 · May 5, 25
redfish_drives: Handle missing value due to drive failure
Drives that experience failure may report certain values as null via the Redfish API.
If the reported capacity is affected, this led to a crash in the "Drive" service:
TypeError (unsupported operand type(s) for /: 'NoneType' and 'int')
Now the null capacity values are treated the same as completely missing capacity: The reported drive size is 0GB.
Details
- Class:
- Bug Fixes
- Level:
- Trivial
- Component:
- Checks
- Versions:
- 2.5.0b1All Editions
- 2.4.0p1All Editions