Skip to content

fix: skip dynamic blocks that iterate over an unknown #252

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

Conversation

ajkerrigan
Copy link
Member

If the value of a dynamic block's for_each is unknown at parse time, treat it the same as a null value.

Without the changes in converter.go, the additions to test_parse_dynamic_content() cause that test to crash and reproduce the error reported in #249.

Closes #249

If the value of a dynamic block's `for_each` is unknown at parse time,
treat it the same as a null value.

Closes cloud-custodian#249
@ajkerrigan ajkerrigan force-pushed the ajk/fix/dynamic-for-each-unknown-val branch from 876114d to 6ae984a Compare June 8, 2025 04:24
Copy link
Contributor

@JonZeolla JonZeolla left a comment

Choose a reason for hiding this comment

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

Makes sense to me! Looking forward to the corresponding release

Thank you for the quick turnaround

@ajkerrigan ajkerrigan merged commit 9527d68 into cloud-custodian:main Jun 23, 2025
12 checks passed
@ajkerrigan ajkerrigan deleted the ajk/fix/dynamic-for-each-unknown-val branch June 23, 2025 17:54
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.

New exception as of 0.6.16
3 participants