summaryrefslogtreecommitdiffstats
path: root/src/utils/hw_inventory.py
Commit message (Collapse)AuthorAgeFilesLines
* utils: add hw_inventory.pyJose M. Guisado2023-04-181-0/+309
hw_inventory.py defines classes and helpers functions enabling fetching of hardware inventory from a running client. Uses a subprocess call to the command 'lshw -json' to obtain hardware information. Relevant public functions: > get_hardware_inventory() Main function encapsulating subprocess and output processing logic. Returns a HardwareInventory object. > legacy_list_hardware_inventory(inventory) Legacy string representation of parameter HardwareInventory object