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

Adjusts variable lookups #248

Merged
merged 3 commits into from
Dec 21, 2023
Merged

Adjusts variable lookups #248

merged 3 commits into from
Dec 21, 2023

Conversation

mocdaniel
Copy link
Contributor

Right now, many variable lookups happen in the form of vars['some']['nested'][variable]['value'].

This can be problematic when the variable itself is another jinja-templated expression, see also #226

Instead, we should look up variables like this wherever possible:

some.nested[variable].value

This PR adjusts all lookups which don't explicitly check the variable's existence via is defined to the alternative syntax.

@cla-bot cla-bot bot added the cla/signed label Dec 20, 2023
@mocdaniel mocdaniel added the bug Something isn't working label Dec 20, 2023
Copy link
Member

@mkayontour mkayontour left a comment

Choose a reason for hiding this comment

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

Hi, this looks good. I ran a few tests within my local environment, they worked great.

@mkayontour mkayontour merged commit b8c4b16 into main Dec 21, 2023
4 checks passed
@mocdaniel mocdaniel deleted the fix/secret-parsing branch December 21, 2023 13:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working cla/signed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants