From 59eac6d0d548b0c855d302f86558f94000a83a0d Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Wed, 18 Oct 2023 12:05:23 +0200 Subject: live: hw_inventory: fix typo Add missing underscore to _bytes_to_human call. Fixes: 39c13287c53bd8 ("live: hw_inventory: fix empty memory bank bug") --- src/utils/hw_inventory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/hw_inventory.py b/src/utils/hw_inventory.py index e7cb463..dff1c7a 100644 --- a/src/utils/hw_inventory.py +++ b/src/utils/hw_inventory.py @@ -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) -- cgit v1.2.3-18-g5258