-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Sanitize var code #11566
Sanitize var code #11566
Conversation
This should be the default, and avoids a panic. This type can represent situations where a type is not yet known. Its meaning is undefined in cty.
remove untrue docs
variable "vms_to_build" { | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The panic was here, because no type was given to this variable, and while trying to loop (for
) on it, the HCL library would panic because the var has no type.
|
||
source "file" "chocolate" { | ||
content = "hello" | ||
target = "${local.dynamic_slice.amgroup}.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the test we check that there is a hey.txt
file.
670a3d5
to
8defa43
Compare
9eff32a
to
e69e839
Compare
e69e839
to
a007161
Compare
Update inspect_test.go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nicely done. LGTM!
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
This fixes #11554 and a panic I discovered while testing things + fixes some docs
Related: #11534
This also fixes #11551