-
Notifications
You must be signed in to change notification settings - Fork 710
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
Fixes related to SLE 12/15 for the rules set_min/max_life_existing #10173
Fixes related to SLE 12/15 for the rules set_min/max_life_existing #10173
Conversation
Hi @rumch-se. Thanks for your PR. I'm waiting for a ComplianceAsCode member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
This datastream diff is auto generated by the check Click here to see the full diffbash remediation for rule 'xccdf_org.ssgproject.content_rule_accounts_password_set_max_life_existing' differs.
--- xccdf_org.ssgproject.content_rule_accounts_password_set_max_life_existing
+++ xccdf_org.ssgproject.content_rule_accounts_password_set_max_life_existing
@@ -1,5 +1,6 @@
var_accounts_maximum_age_login_defs=''
+
while IFS= read -r i; do
bash remediation for rule 'xccdf_org.ssgproject.content_rule_accounts_password_set_min_life_existing' differs.
--- xccdf_org.ssgproject.content_rule_accounts_password_set_min_life_existing
+++ xccdf_org.ssgproject.content_rule_accounts_password_set_min_life_existing
@@ -1,5 +1,6 @@
var_accounts_minimum_age_login_defs=''
+
while IFS= read -r i; do |
@@ -11,13 +11,18 @@ | |||
register: user_names | |||
|
|||
- name: Change the maximum time period between password changes | |||
{{% if product not in ["rhel7", "ol7"] %}} | |||
{{% if product in ["rhel7", "ol7","sle12","sle15"] %}} | |||
{{% if product in ["rhel7", "ol7"] %}} |
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.
I think you can avoid nesting conditions and have an if-elif instead.
register: user_names | ||
|
||
- name: Change the minimum time period between password changes | ||
{{% if product not in ["sle12", "sle15"] %}} |
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.
I would prefer the opposite condition instead of using a negative condition.
Hello @jan-cerny |
Code Climate has analyzed commit c2dfe8a 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 51.7% (2.2% change). View more on Code Climate. |
Description:
Rationale: