Go to file
Jose M. Guisado 39c13287c5 live: hw_inventory: fix empty memory bank bug
When a client's hardware presents an empty memory bank and invalid call
to _bytes_to_human is performed because None is passed as a parameter.

	size = _bytes_to_human(obj.get('size', None))

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-05 16:19:36 +02:00
cfg src: improve logging 2022-06-08 10:27:06 +02:00
src live: hw_inventory: fix empty memory bank bug 2023-10-05 16:19:36 +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