-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
sudoers: fix handling of state: absent (#4852) #4853
sudoers: fix handling of state: absent (#4852) #4853
Conversation
cc @JonEllis @JonEllis0 |
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.
Thanks for your contribution!
LGTM. Thanks for fixing it! |
Backport to stable-4: 💚 backport PR created✅ Backport PR branch: Backported as #4857 🤖 @patchback |
Backport to stable-5: 💚 backport PR created✅ Backport PR branch: Backported as #4858 🤖 @patchback |
…sible-collections#4853) * sudoers: fix handling of state: absent (ansible-collections#4852) * typo fixes
SUMMARY
This PR decouples the check for
state == absent
from the file existence check, so thatrun
does not "fall through" into code paths intended forstate == present
.fixes #4852
ISSUE TYPE
COMPONENT NAME
sudoers
ADDITIONAL INFORMATION
Refer to #4852. Please ask if anything is unclear.