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/cis 5 2 4 5 loop #124

Merged

Conversation

arousseau-coveo
Copy link
Contributor

Overall Review of Changes:
Added a default value when ubtu20cis_rule_5_2_4_5 is skipped

Issue Fixes:
Since ubtu20cis_rule_5_2_4_5 relies on a prelim register when it's skip the register doesn't populate the value of: auditd_conf_files which will results in the following error if ubtu20cis_rule_5_2_4_5 is skipped.

dict object' has no attribute 'files'

This is a known behaviour of ansible since even if the when condition is not met the loop operation will be computed.

Enhancements:
Please list any enhancements/features that are not open issue tickets

How has this been tested?:
Please give an overview of how these changes were tested. If they were not please use N/A
I run the breaking ansible pass with ubtu20cis_rule_5_2_4_5 set to false and it did throw any error.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Congrats on opening your first pull request and thank you for taking the time to help improve Ansible-Lockdown!
Please join in the conversation happening on the Discord Server as well.

Signed-off-by: Alexandre Rousseau <arousseau@coveo.com>
Signed-off-by: Alexandre Rousseau <arousseau@coveo.com>
Signed-off-by: Alexandre Rousseau <arousseau@coveo.com>
Copy link
Contributor

@georgenalen georgenalen left a comment

Choose a reason for hiding this comment

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

Looks good!

Copy link
Contributor

@MrSteve81 MrSteve81 left a comment

Choose a reason for hiding this comment

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

Looks Good and great catch!

@MrSteve81 MrSteve81 merged commit 4449780 into ansible-lockdown:devel Dec 13, 2023
4 checks passed
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