use lshw for inventory #58

Merged
ThomasADavis merged 15 commits from lshw-inventory into master 2019-09-05 15:13:37 +02:00
ThomasADavis commented 2019-09-03 23:25:08 +02:00 (Migrated from github.com)

Creates sata and nvme disk, motherboard, network interfaces, dimm's.

Since the difference between update and create is minimal, I've combined them together into a single function. update gets empty arrays, which simply bypass the delete function and go straight to the create part of the update function.

Several duplicate code blocks was merged into a single function.

I have no idea if the raid still works.

You need to have the 'nvme' program installed, along with 'lshw' to use.

t

Creates sata and nvme disk, motherboard, network interfaces, dimm's. Since the difference between update and create is minimal, I've combined them together into a single function. update gets empty arrays, which simply bypass the delete function and go straight to the create part of the update function. Several duplicate code blocks was merged into a single function. I have no idea if the raid still works. You need to have the 'nvme' program installed, along with 'lshw' to use. t
Solvik commented 2019-09-04 12:16:48 +02:00 (Migrated from github.com)

I've commited several modifications, I'm gonna do more testing but from what I can see it's good
Most of the modifications are to make sure the raid disks behavior is backward compatible

Is it good for you?

I've commited several modifications, I'm gonna do more testing but from what I can see it's good Most of the modifications are to make sure the raid disks behavior is backward compatible Is it good for you?
ThomasADavis commented 2019-09-04 19:17:50 +02:00 (Migrated from github.com)

LGTM.

LGTM.
Solvik commented 2019-09-05 13:46:52 +02:00 (Migrated from github.com)

I'm performing more tests and will commit some modifications
Most of them are un-existing lshw dict keys (product/serial/etc), so I'm making sure it's fail proof :)

I'm performing more tests and will commit some modifications Most of them are un-existing lshw dict keys (product/serial/etc), so I'm making sure it's fail proof :)
Sign in to join this conversation.
No description provided.