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
cty.ListVal relies on getting a non-empty list in order to know what element type the resulting list will have, so it panics if given an empty list. This should be fixable then by adding an extra guard condition just before:
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
Jul 25, 2019
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/alex-goncharov/d51af9a2b88a089cb32154abb031081a
Crash Output
https://gist.github.com/alex-goncharov/66f756fc609371862200e69a97b5f6f2
Expected Behavior
distinct returned empty list
Actual Behavior
terraform panics
Steps to Reproduce
create file with about hcl
terraform init && terraform plan
Additional Context
References
The text was updated successfully, but these errors were encountered: