8000 --write: Add MatchError.yaml_path for transforms by cognifloyd · Pull Request #2025 · ansible/ansible-lint · GitHub
[go: up one dir, main page]

Skip to content

Conversation

cognifloyd
Copy link
Contributor

Transforms need to know where to edit in the YAML data structures. So, we record the path to that location in MatchError.yaml_path and provide a seek() utility to descend to that location.

8000
This is used to find where in the YAML data a rule needs to make transforms.
It can use ``match.yaml_path`` to identify the target section of data.
@cognifloyd cognifloyd requested a review from a team as a code owner March 19, 2022 14:39
@cognifloyd cognifloyd self-assigned this Mar 19, 2022
@cognifloyd cognifloyd requested review from ssbarnea and removed request for a team March 19, 2022 14:39
@cognifloyd
Copy link
Contributor Author

I debated using the enhancement or the skip-changelog label. Feel free to change it.

@cognifloyd cognifloyd changed the title Add MatchError.yaml_path for transforms --write: Add MatchError.yaml_path for transforms Mar 19, 2022
@ssbarnea ssbarnea merged commit 88bf6e8 into ansible:main Mar 20, 2022
@ssbarnea ssbarnea changed the title --write: Add MatchError.yaml_path for transforms --write: Add MatchError.yaml_path for transforms Mar 21, 2022
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.

2 participants
0