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

Fixes #17490: Config Template unable to dynamically include templates #18106

Conversation

robduffy2010
Copy link
Contributor

Fixes: #17490

Config templates are unable to dynamically include child templates. This is a proposed fix as suggested by @ed-ud in #18066 which was closed as a duplicate.

Copy link
Member

@jeremystretch jeremystretch left a comment

Choose a reason for hiding this comment

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

Thanks for tracking this down @robduffy2010!

netbox/utilities/jinja2.py Outdated Show resolved Hide resolved
netbox/utilities/jinja2.py Outdated Show resolved Hide resolved
robduffy2010 and others added 2 commits December 2, 2024 20:25
…able to avoid exhausting it on the check for None

Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
Co-authored-by: Jeremy Stretch <jstretch@netboxlabs.com>
@robduffy2010
Copy link
Contributor Author

Thanks very much @jeremystretch. I went ahead and added commits for the changes you proposed. Again, kudos to @ed-ud for the initial proposed fix. Admittedly, I had spent a lot of time troubleshooting this and ended up in a similar spot, when I came back to the issue and saw there was a duplicate.

@ed-ud
Copy link

ed-ud commented Dec 2, 2024

Thank you both!

@robduffy2010
Copy link
Contributor Author

Just a heads up that the workflow ran before I had finished all the changes. Is it possible to run it again and review?

@jeremystretch jeremystretch merged commit 327ad8c into netbox-community:develop Dec 5, 2024
3 checks passed
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.

Config Template unable to dynamically include templates
3 participants