diff --git a/pyghmi/ipmi/oem/lenovo/imm.py b/pyghmi/ipmi/oem/lenovo/imm.py index 4b85608d..1785eacd 100644 --- a/pyghmi/ipmi/oem/lenovo/imm.py +++ b/pyghmi/ipmi/oem/lenovo/imm.py @@ -1473,9 +1473,11 @@ class XCCClient(IMMClient): spares.append(diskinfo) else: disks.append(diskinfo) - totalsize = pool['totalCapacityStr'].replace('GB', '') + totalsize = pool['totalCapacityStr'].replace( + 'GB', '').replace('GiB', '') totalsize = int(float(totalsize) * 1024) - freesize = pool['freeCapacityStr'].replace('GB', '') + freesize = pool['freeCapacityStr'].replace( + 'GB', '').replace('GiB', '') freesize = int(float(freesize) * 1024) pools.append(storage.Array( disks=disks, raid=pool['rdlvlstr'], volumes=volumes, diff --git a/pyghmi/redfish/oem/lenovo/xcc.py b/pyghmi/redfish/oem/lenovo/xcc.py index ccb15321..9eaa4f88 100644 --- a/pyghmi/redfish/oem/lenovo/xcc.py +++ b/pyghmi/redfish/oem/lenovo/xcc.py @@ -308,9 +308,11 @@ class OEMHandler(generic.OEMHandler): spares.append(diskinfo) else: disks.append(diskinfo) - totalsize = pool['totalCapacityStr'].replace('GB', '') + totalsize = pool['totalCapacityStr'].replace( + 'GB', '').replace('GiB', '') totalsize = int(float(totalsize) * 1024) - freesize = pool['freeCapacityStr'].replace('GB', '') + freesize = pool['freeCapacityStr'].replace( + 'GB', '').replace('GiB', '') freesize = int(float(freesize) * 1024) pools.append(storage.Array( disks=disks, raid=pool['rdlvlstr'], volumes=volumes,