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

Allow for empty serial. #69

Merged
merged 1 commit into from
May 17, 2023
Merged

Conversation

Heidistein
Copy link
Contributor

I have several NVME drives reporting an empty 'Serial Number:'. The line is there, but with no data. This commit catches that error. I was in doubt if it might have been nicer to check the length returned by the split(':').

I have several NVME drives reporting an empty 'Serial Number:'. The line is there, but with no data. This commit catches that error.
I was in doubt if it might have been nicer to check the length returned by the split(':').
@ralequi ralequi self-assigned this May 17, 2023
@ralequi ralequi changed the base branch from master to develop May 17, 2023 13:27
@ralequi
Copy link
Collaborator

ralequi commented May 17, 2023

Seems like an easy fix.

Thanks for your contrib!

@ralequi ralequi merged commit 9c5d7ad into truenas:develop May 17, 2023
@ralequi ralequi added the bug label May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants