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

Prioritize install_smartcard_packages like package_*_installed #7224

Merged
merged 2 commits into from
Jul 14, 2021

Conversation

cipherboy
Copy link
Contributor

Description:

Several smartcard rules have the problem that install_smartcard_packages
is not appropriately ordered. In #7208, we renamed the rule to match the
pattern of package_*_installed. However, this approach breaks any
existing tailoring and thus wasn't desired. Move to updating the Python
to order this rule as a special case.

Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>

@pep8speaks
Copy link

pep8speaks commented Jul 8, 2021

Hello @cipherboy! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2021-07-08 19:25:12 UTC

Several smartcard rules have the problem that install_smartcard_packages
is not appropriately ordered. In ComplianceAsCode#7208, we renamed the rule to match the
pattern of package_*_installed. However, this approach breaks any
existing tailoring and thus wasn't desired. Move to updating the Python
to order this rule as a special case.

Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>
Signed-off-by: Alexander Scheel <alex.scheel@canonical.com>
@matejak matejak added this to the 0.1.57 milestone Jul 14, 2021
@matejak matejak added the bugfix Fixes to reported bugs. label Jul 14, 2021
@matejak matejak self-assigned this Jul 14, 2021
Copy link
Member

@matejak matejak left a comment

Choose a reason for hiding this comment

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

LGTM, this PR fixes an issue when a "package is installed" rule escaped the already-existing ordering, because it was slightly aside from our templated package-installed rules.

@matejak matejak merged commit 13a88c7 into ComplianceAsCode:master Jul 14, 2021
vojtapolasek pushed a commit that referenced this pull request Jul 16, 2021
Prioritize install_smartcard_packages like package_*_installed

(cherry picked from commit 13a88c7)
@vojtapolasek vojtapolasek added backported-into-stabilization PRs which were cherry-picked during stabilization process. Infrastructure Our content build system labels Jul 19, 2021
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported-into-stabilization PRs which were cherry-picked during stabilization process. bugfix Fixes to reported bugs. Infrastructure Our content build system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants