Bertrand Lanson 162132070b filter out drives reporting null size on inspect
During inspection with the redfish interface, some out of band
interfaces might report empty drive bays as having a null size.
This breaks sushy's Storage.drives_sizes_bytes which uses sorted(),
which internally uses the < operator, that raises type error when the
values aren't numbers.

We filter out empty drives to avoid this error.

Closes-Bug: #2150858
Change-Id: I8c8893e2c54038b2c1dd7a0eddc10442a013e8e0
Signed-off-by: Bertrand Lanson <[email protected]>
2026-05-04 14:00:41 +02:00
2024-11-11 11:13:13 -06:00
2018-09-25 07:13:40 +00:00
2018-07-19 10:46:08 +07:00
2019-04-19 19:48:38 +00:00
2017-02-13 22:04:23 +00:00
2020-05-14 13:36:50 +02:00
2018-02-06 00:58:41 +08:00
2017-02-13 22:04:23 +00:00
2025-10-13 12:01:04 +02:00
2021-01-06 18:09:30 +01:00
2024-11-11 11:13:13 -06:00

Overview

Sushy is a Python library to communicate with Redfish based systems.

The goal of the library is to be extremely simple, small, have as few dependencies as possible and be very conservative when dealing with BMCs by issuing just enough requests to it (BMCs are very flaky).

Therefore, the scope of the library has been limited to what is supported by the OpenStack Ironic project. As the project grows and more features from Redfish are needed we can expand Sushy to fulfill those requirements.

S
Description
Sushy is a small Python library to communicate with Redfish based systems
Readme 11 MiB
Languages
Python 100%