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

Add optional rule to check for loop var prefix #1303

Merged
merged 1 commit into from Feb 4, 2021
Merged

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Feb 3, 2021

Based on original custom rule written by @albinvass on
https://opendev.org/zuul/zuul-jobs/blame/branch/master/.rules/ZuulJobsNamespaceLoopVar.py

This new rule becomes active only when loop_var_prefix is defined
inside the config and allows user to use dynamic prefix based
on role folder name.

@ssbarnea ssbarnea force-pushed the 0/mock-roles branch 5 times, most recently from bf987eb to 9d9c63e Compare February 4, 2021 10:38
@ssbarnea ssbarnea changed the title Add ability to mock roles Add optional rule to check for loop var prefix Feb 4, 2021
@ssbarnea ssbarnea force-pushed the 0/mock-roles branch 4 times, most recently from 78394a7 to 531f670 Compare February 4, 2021 15:24
Based on original custom rule written by Albin Vass on
https://opendev.org/zuul/zuul-jobs/blame/branch/master/.rules/ZuulJobsNamespaceLoopVar.py

This new rule becomes active only when loop_var_prefix is defined
inside the config and allows user to use dynamic prefix based
on role folder name.
@ssbarnea ssbarnea merged commit 958a253 into master Feb 4, 2021
@ssbarnea ssbarnea deleted the 0/mock-roles branch February 4, 2021 15:53
@albinvass
Copy link
Contributor

lgtm, I guess if we upgrade ansible-lint in zuul-jobs we can replace the rule with a simple config update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants