live: hw_inventory: fix typo

Add missing underscore to _bytes_to_human call.

Fixes: 39c13287c5 ("live: hw_inventory: fix empty memory bank bug")
master
Jose M. Guisado 2023-10-18 12:05:23 +02:00
parent 39c13287c5
commit 59eac6d0d5
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ def _process_core_pci_network(inventory, obj):
def _process_core_pci_storage_child(inventory, obj):
obj_id = obj.get('id', '')
if obj_id.startswith('disk') or obj_id.startswith('nvme'):
size = bytes_to_human(obj.get('size', 'Unknown size'))
size = _bytes_to_human(obj.get('size', 'Unknown size'))
name = ' '.join([obj.get('description', ''), obj.get('product', 'Unknown product'), size])
elem = HardwareElement(HardwareType.DISK, name)
inventory.add_element(elem)