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

Adapt to the new libblockdev initialization API #127

Merged
merged 1 commit into from May 27, 2015

Conversation

vpodzime
Copy link
Contributor

In version 1.0 the libblockdev library changes the initialization functions a
bit and thanks to that we may simplify our code.

except GLib.GError:
pass
try:
succ, avail_plugs = blockdev.try_reinit(require_plugins=_requested_plugins, reload=False, log_func=log_bd_message)
Copy link
Contributor

Choose a reason for hiding this comment

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

succ is ignored, so it should be underscored.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch, thanks! I originally meant to use it to skip the set operations and checks, but I think it's clearer to just compare the sets. Fixing.

@mulkieran
Copy link
Contributor

Other than comment about "succ", it looks fine to me.

In version 1.0 the libblockdev library changes the initialization functions a
bit and thanks to that we may simplify our code.
@vpodzime
Copy link
Contributor Author

Added the underscore to the succ variable and bumped the required version of libblockdev to 1.0.

vpodzime added a commit that referenced this pull request May 27, 2015
Adapt to the new libblockdev initialization API
@vpodzime vpodzime merged commit 4145eb5 into storaged-project:master May 27, 2015
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.

None yet

2 participants