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

Fix dmidecode not installed #396

Merged
merged 3 commits into from Oct 23, 2018
Merged

Conversation

lagartoflojo
Copy link
Contributor

@lagartoflojo lagartoflojo commented Oct 22, 2018

  • Bump the version

- :each is not needed when calling before/after, since it's the default
- Removed duplication on `context` and `it` descriptions
- Renamed `dmidecode` to `dmidecode_output` to make it clearer
- Moved the `dmidecode_output` variable to the block where it is used
Not all systems have dmidecode installed. When they don't, calling
HwInfo#cloud_provider failed with "No such file or directory -
dmidecode".
Now, we correctly rescue from Errno::ENOENT errors, and return nil.
This means that, at least for now, we do not detect S390 systems running
in the public cloud, although it's unknown whether there is any cloud
provider that offers that architecture.

Bug: https://bugzilla.suse.com/show_bug.cgi?id=1112702
@suse-tests-pass
Copy link
Collaborator

Well Done! Your tests are still passing.
https://ci.suse.de/job/SCC-Connect-Prophet/154429/console
If the given link has expired,you can force a Prophet rerun by just deleting this comment. (Merged f5a6207 into 56f41be)

Copy link
Member

@digitaltom digitaltom left a comment

Choose a reason for hiding this comment

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

Maybe useful for review:

Tested by moving away /usr/sbin/dmidecode and calling SUSE::Connect::HwInfo::Base.info
in a connect console (rake console).
👍

@SUSE SUSE deleted a comment from suse-tests-pass Oct 22, 2018
@suse-tests-pass
Copy link
Collaborator

Well Done! Your tests are still passing.
https://ci.suse.de/job/SCC-Connect-Prophet/154434/console
If the given link has expired,you can force a Prophet rerun by just deleting this comment. (Merged 5b8a077 into 56f41be)

@lagartoflojo lagartoflojo merged commit 324c8af into master Oct 23, 2018
@lagartoflojo lagartoflojo deleted the fix-dmidecode-not-installed branch October 23, 2018 11:43
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

3 participants