-
Notifications
You must be signed in to change notification settings - Fork 48
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: no longer use "item" as a loop variable #217
Conversation
By using a different loop variable, we can avoid WARNING messages related to loop variables when calling the selinux role from another role. Fixes: linux-system-roles#216 Signed-off-by: Bernd Finger <bfinger@redhat.com>
Thanks - in fact I would suggest you go further and use |
Relates to linux-system-roles#216 . Signed-off-by: Bernd Finger <bfinger@redhat.com>
I like the idea of naming the loop variable to also contain the role name. See 5bff24d. |
Co-authored-by: Richard Megginson <richm@stanfordalumni.org>
[citest] |
These test failures are really strange - I don't think they are related to the PR - investigating |
@berndfinger in tasks/selinux_load_module.yml |
Signed-off-by: Bernd Finger <bfinger@redhat.com>
[citest] |
By using a different loop variable, we can avoid WARNING messages related to loop variables when calling the
selinux
role from another role.Fixes: #216 .
Enhancement: Avoid the warning message:
Reason: Although I am not aware of any errors when using the role
selinux
without this fix, the warning message (printed in bold and in a different than usual color - violet in my tests) adds lines to the output which can confuse users.Result: The warning message `[WARNING]: TASK: ... "The loop variable 'item' is already in use." is no longer displayed when calling the role from another role.
Issue Tracker Tickets (Jira or BZ if any): N/A