-
Notifications
You must be signed in to change notification settings - Fork 761
Fix variable selection when selecting the default value #11015
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 variable selection when selecting the default value #11015
Conversation
The only way to override the control variable selection to the default value is to create a new option to represent the default value and select it.
Instead it just need to be absent.
|
Code Climate has analyzed commit 54093c4 and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 100.0% (50% is the threshold). This pull request will bring the total coverage in the repository to 53.3% (0.0% change). View more on Code Climate. |
|
Hello @ggbecker I have a question. It seems you took a different approach for the E8 profile (remove the explicit default selector) and SLE ANSSI profiles (add a new selector with the SAME value as the default value, and select this selector). May I know the reason for this approach? |
teacup-on-rockingchair
left a comment
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.
Nice stuff 👍
|
The issue references is wrong, I messed up and incorrectly associated The proper issue fixed by this PR would be #11018 . |
Fixed |
The ones I overrode with a new value is because the value comes from a control file Line 897 in 2ea9497
and this value is not the default one. Then they were trying to revert it to the default value, but since it's not possible to select the default selector and the default value was not represented by any other selector, I had to create a new value there and use it instead. I don't know if it would be possible to deselect the variable by using something like: |
|
I see now, thank you @ggbecker for the explanation. I am afraid unselecting variables in .profile files does not work, I have tried that recently. |
vojtapolasek
left a comment
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.
LGTM, the failing check is because rawhide is broken.
|
@freddieRv could you please review? Thank you. |
freddieRv
left a comment
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.
Changes LGTM
Description:
Rationale:
It's not possible to directly select the default value, so instead we either remove or create a new value to represent the default value.
Fixes: openscap failing on sshd_use_strong_macs in e8 on RHEL-7 #11018