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

1438869: Clear dmidecode warnings #1584

Merged
merged 1 commit into from Apr 17, 2017
Merged

1438869: Clear dmidecode warnings #1584

merged 1 commit into from Apr 17, 2017

Conversation

kahowell
Copy link
Contributor

There are two cases where we need to clear the warnings:

  1. Non-blacklisted platforms, where this change restores old behavior of
    logging the warnings if they are present.
  2. Blacklisted platforms, where we don't even attempt to use dmidecode,
    even though it is imported, where this change blindly clears the
    warnings.

There are two cases where we need to clear the warnings:

1. Non-blacklisted platforms, where this change restores old behavior of
   logging the warnings if they are present.
2. Blacklisted platforms, where we don't even attempt to use dmidecode,
   even though it is imported, where this change blindly clears the
   warnings.
@kahowell kahowell requested a review from awood April 17, 2017 15:39
@awood
Copy link
Contributor

awood commented Apr 17, 2017

💵 💎 💰 🥇

@awood awood merged commit ea86f22 into master Apr 17, 2017
kahowell added a commit that referenced this pull request Apr 20, 2017
Previously tried to fix with #1584, but with that fix, only some of the
cases were covered. This change covers more cases by making `get_all`
responsible for importing dmidecode and then making sure any warnings
are cleared.

In this way, dmiinfo more fully encapsulates dmidecode, not even
exposing the module outside of that method (except to pass to other
helper functions).
kahowell added a commit that referenced this pull request Apr 20, 2017
Previously tried to fix with #1584, but with that fix, only some of the
cases were covered. This change covers more cases by making `get_all`
responsible for importing dmidecode and then making sure any warnings
are cleared.

In this way, dmiinfo more fully encapsulates dmidecode, not even
exposing the module outside of that method (except to pass to other
helper functions).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants