You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The issue here seems to be that the function is not accommodating the requirement from the type system implementation that Terraform uses where an empty map must be constructed using a different function (cty.MapValEmpty) so that the caller can provide the element type for the map, which would otherwise be inferred automatically from the element values.
So the likely fix here is to check before calling cty.MapVal whether the map is empty, and call cty.MapValEmpty with a suitable element type instead.
parviz-93
added a commit
to parviz-93/terraform
that referenced
this issue
Nov 8, 2019
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Mar 29, 2020
# for freeto subscribe to this conversation on GitHub.
Already have an account?
#.
Terraform Version
Crash Output
Expected Behavior
The function should be returning an empty map if the given map was empty or all its values are empty.
Actual Behavior
The function panics instead of returning an empty map
Steps to Reproduce
The text was updated successfully, but these errors were encountered: