Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using SMART tool to get the devices instead of glob #14

Merged

Conversation

Jopaul-John
Copy link
Contributor

The current code uses a regular expression to get the drives in the system. This can lead to finding unsupported smartctl drives like USB/Virtual drives. So instead, a better way is to use the smartctl scan functionality that will only fetch the drives which are compatible.

Removed variable TYPES since it is no longer used

Removed the if statement, because
- TYPES are no longer used
- DEVICES is now a dictionary containing
device name and its type

Removed unused codes

Removed variable TYPES since it is no longer used

Removed the if statement, because
    - TYPES are no longer used
    - DEVICES is now a dictionary containing
      device name and its type

Removed unused codes
Copy link

@grische grische left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works fine for me

@ngosang ngosang merged commit cd0faff into matusnovak:master Jul 27, 2022
@ngosang
Copy link
Collaborator

ngosang commented Jul 27, 2022

Thank you @Jopaul-John

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants