-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update disk's controller type parsing
Disk controller type parsing was completely wrong, since it relied on a) parent disk b) description But there is no such thing as "parent disk", `disk.parent` actually points to "parent controller". Inventoring crashed hard when such "parent disk" was not found! With this commit we update refresh parser to now properly inventory controller type based on disk's bus subtype. Also, we prevent distinguising real disks from simple ones (like CD) based on "disk.description", which is rather unreliable, and now distinguish based on disk's bus type. Signed-off-by: Miha Pleško <[email protected]>
- Loading branch information
1 parent
e1fcf19
commit af42e32
Showing
2 changed files
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters