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

Store vendor/model information for DiskDevice instances. #111

Merged
merged 1 commit into from May 26, 2015

Conversation

dwlehman
Copy link
Contributor

@dwlehman dwlehman commented May 8, 2015

Also make sure _model and _vendor attrs are never set to None in the
StorageDevice constructor.

Fixes #84

if desc:
desc += " "
desc += self.model
return desc
Copy link
Contributor

Choose a reason for hiding this comment

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

" ".join(s for s in (self.vendor, self.model) if s)

seems clearer to me.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed.

@mulkieran mulkieran added the ACK label May 11, 2015
@mulkieran
Copy link
Contributor

Looks good, then.

@vpodzime
Copy link
Contributor

Looks good to me too.

Also make sure _model and _vendor attrs are never set to None in the
StorageDevice constructor.

Fixes storaged-project#84
dwlehman added a commit that referenced this pull request May 26, 2015
Store vendor/model information for DiskDevice instances.
@dwlehman dwlehman merged commit a957348 into storaged-project:master May 26, 2015
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.

None yet

3 participants