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

flatten: only DynamicVal should cause flatten to become unknown, not a null dynamic value. #110

Merged
merged 2 commits into from Jul 6, 2021

Conversation

jbardin
Copy link
Contributor

@jbardin jbardin commented Jul 6, 2021

When flattening a list of arguments, the special case of a null dynamic value should not force the result to be unknown. We do not check directly for "IsKnown" here, because it is specifically the dynamic type which will cause flatten to become unknown, while unknown values alone can be preserved preserved.

hashicorp/terraform#29099

When flattening a list of arguments, the special case of a `null`
dynamic value should not force the result to be unknown. We do not check
directly for "IsKnown" here, because it is specifically the dynamic type
which will cause `flatten` to become unknown, while unknown values alone
can be preserved preserved.
@jbardin jbardin changed the title skip null values in flatten flatten: only DynamicVal should cause flatten to become unknown, not a null dynamic value. Jul 6, 2021
Copy link
Collaborator

@apparentlymart apparentlymart left a comment

Choose a reason for hiding this comment

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

Ah, whoops! Thanks!

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

2 participants