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 IndexError when selecting items in lists out of bounds #154

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

w0rmr1d3r
Copy link
Member

In some templates, when resolving a select, the values to choose from come from: unresolved due to unimplemented functions (such as Fn::GetAtt).
In these scenarios, pycfmodel fails to resolve a list, hence, the model itself, due to an IndexError.

For now, until Fn::GetAtt isn't implemented, we will return an empty list when finding this error.

@w0rmr1d3r w0rmr1d3r self-assigned this Dec 19, 2024
@w0rmr1d3r w0rmr1d3r marked this pull request as ready for review December 19, 2024 16:08
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