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

Fix resolve_find_in_map when map has bool values #112

Merged
merged 6 commits into from Jul 7, 2023

Conversation

w0rmr1d3r
Copy link
Member

It has been seen in CloudFormation templates where maps contain bool values, where this resolver doesn't work on False. Even though it's able to find the correct value.

Updating the condition so it returns both True and False values, and failing if the value is None (default return on the get() function).

Added tests accordingly.

Updated cloudformation_actions and tests failing due to that.

@w0rmr1d3r w0rmr1d3r self-assigned this Jul 7, 2023
@w0rmr1d3r w0rmr1d3r marked this pull request as ready for review July 7, 2023 15:02
Copy link
Contributor

@ignaciobolonio ignaciobolonio left a comment

Choose a reason for hiding this comment

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

Nice catch!

Copy link
Member

@jsoucheiron jsoucheiron left a comment

Choose a reason for hiding this comment

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

LGTM

@w0rmr1d3r w0rmr1d3r merged commit c2cd85c into master Jul 7, 2023
5 checks passed
@w0rmr1d3r w0rmr1d3r deleted the fix_resolve_map_for_bool_values branch July 7, 2023 15:15
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.

None yet

3 participants