-
Notifications
You must be signed in to change notification settings - Fork 5.5k
sysutils/py-salt: fix the efi grain on FreeBSD #63052
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is gonna need a test and a changelog.
I can add a changelog entry. But as for tests, there is literally nothing that this function would do except return the value of our mock function. In other words, there's no way to write a test for this function that's different from simply writing the function itself. That's why one-liners usually don't need to be unit-tested. |
The logic to detect whether we booted from EFI only worked on Linux and Apple, AFAICT.
@asomers Please add a changelog file. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved pending changelog.
The logic to detect whether we booted from EFI only worked on Linux and Apple, AFAICT.
What does this PR do?
Correctly detects EFI on FreeBSD
What issues does this PR fix or reference?
Fixes:
Previous Behavior
grains.get efi would always return False on FreeBSD
New Behavior
grains.get efi will return the correct value on FreeBSD
Merge requirements satisfied?
Commits signed with GPG?
Yes