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

var-naming: also recognize vars with set_fact module #2496

Merged
merged 3 commits into from Sep 28, 2022

Conversation

nishipy
Copy link
Contributor

@nishipy nishipy commented Sep 26, 2022

Fixes: #2065

Copy link
Member

@ssbarnea ssbarnea left a comment

Choose a reason for hiding this comment

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

I am not sure if I fully understand the bug, but if that is fixing something that was not working correctly before, why I am not seeing any change being made to the tests? ... a change that would ensure
that we not see a regression in the future.

Look at the bottom of the file for few tests, you might be able to just
alter them to test the new outcome. I would be able to check manually
the tests without including you change and see that they fail with current implementation.

@nishipy
Copy link
Contributor Author

nishipy commented Sep 26, 2022

Got it. I will add tests.

nishipy and others added 3 commits September 28, 2022 17:54
Signed-off-by: nishipy <goodisonev4@gmail.com>
Signed-off-by: nishipy <goodisonev4@gmail.com>
@ssbarnea ssbarnea changed the title Update var_naming for set_fact module var-name: also recognize vars with set_fact module Sep 28, 2022
@ssbarnea ssbarnea changed the title var-name: also recognize vars with set_fact module var-naming: also recognize vars with set_fact module Sep 28, 2022
@ssbarnea ssbarnea merged commit 71befef into ansible:main Sep 28, 2022
ssbarnea added a commit to ssbarnea/ansible-lint that referenced this pull request Oct 5, 2022
* Update var_naming for set_fact module

Signed-off-by: nishipy <goodisonev4@gmail.com>

* Add test for var_naming with pattern

Signed-off-by: nishipy <goodisonev4@gmail.com>

* More fixes

Signed-off-by: nishipy <goodisonev4@gmail.com>
Co-authored-by: Sorin Sbarnea <sorin.sbarnea@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

var_naming_pattern not working for set_fact
2 participants