Go to file
Jose M. Guisado b49ec83bcd live: hw_inventory: fix empty pci storage size bug
When a client's hardware presents an empty pci storage child there is an
invalid call to _bytes_to_human a string is supplied as a default value
if the storage child does not present a 'size' attribute.

Fix this by checking if 'size' is present in the JSON output from lshw.
If size is present then map the bytes to a human readable string using
_bytes_to_human, if no size is present then use 'Empty slot' to indicate
that the memory bank is not being used.
2023-10-18 13:32:24 +02:00
cfg src: improve logging 2022-06-08 10:27:06 +02:00
src live: hw_inventory: fix empty pci storage size bug 2023-10-18 13:32:24 +02:00
tests ogClient is AGPLv3+ 2021-05-14 00:19:28 +02:00
.gitignore Create new ogClient 2020-01-19 19:50:44 +01:00
COPYING Rename LICENSE to COPYING 2020-06-18 16:45:46 +02:00
ogclient src: improve logging 2022-06-08 10:27:06 +02:00
setup.py Rename 'linux' folder and operations to 'live' 2020-12-03 13:38:43 +01:00