diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2023-04-17 12:53:49 +0200 |
---|---|---|
committer | Jose M. Guisado <jguisado@soleta.eu> | 2023-04-18 12:02:29 +0200 |
commit | 49a86bddd9cee5941bdcafd304a00ad127368ed2 (patch) | |
tree | 59c39dc33bae98474b5ed8b1f79f0415d21ab761 /tests/units/test_0004_hardware.py | |
parent | 4c0904d8da3daf9dc1fc688e09ba4a21153d2ac9 (diff) |
utils: add hw_inventory.py
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
Diffstat (limited to 'tests/units/test_0004_hardware.py')
0 files changed, 0 insertions, 0 deletions