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

Improve/fix jinja2 templates #373

Merged
merged 2 commits into from
Dec 25, 2021

Conversation

felixfontein
Copy link
Collaborator

Making the context available avoids needing to pass everything on. Right now we already forgot to pass collection on. Instead of adding a longer and longer stream of things to pass down, I think it's better to make the context available and only pass in what actually (potentially) differs from call to call.

@felixfontein
Copy link
Collaborator Author

(What was missing is the collection variable needed for the deprecation template, which is used to determine whether the collection name the feature was removed from is mentioned or not.)

Copy link
Contributor

@briantist briantist left a comment

Choose a reason for hiding this comment

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

This looks much cleaner, very nice!

@felixfontein felixfontein merged commit d7e847c into ansible-community:main Dec 25, 2021
@felixfontein felixfontein deleted the jinja2 branch December 25, 2021 11:19
@felixfontein
Copy link
Collaborator Author

@briantist thanks a lot for reviewing this!

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