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

Jinja variables cached between StackGroups #937

Open
NathanWilliams opened this issue Sep 28, 2020 · 0 comments
Open

Jinja variables cached between StackGroups #937

NathanWilliams opened this issue Sep 28, 2020 · 0 comments

Comments

@NathanWilliams
Copy link

While reading config files, Sceptre caches the templating_vars between StackGroups (in config/reader.py).

If a variable is omitted in one stack group's config, the incorrect value from another group is used.
(Note: Sceptre uses a set for its file list, which is non-deterministic, as such the following bug will only be seen on some runs)

I have a minimal example of the bug here:
https://github.com/NathanWilliams/sceptrebug

I'm working on a PR to fix it, and will update this ticket when it is ready.

NathanWilliams pushed a commit to NathanWilliams/sceptre that referenced this issue Sep 28, 2020
While reading config files, Sceptre caches the variables used by Jinja.
If a template is missing a variable, one from a different StackGroup
is used instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants