This website requires JavaScript.
Explore
Help
Sign In
IntenseWebs
/
opentofu
Watch
3
Star
0
Fork
0
You've already forked opentofu
mirror of
https://github.com/opentofu/opentofu.git
synced
2024-12-30 10:47:14 -06:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
c2bc88fc23
opentofu
/
config
/
testdata
/
variable-no-name.tf
9 lines
99 B
Terraform
Raw
Normal View
History
Unescape
Escape
config: generate errors for unnamed blocks of various sources We've been incorrectly validating (or not validating at all) the requirement that certain blocks be followed by a name string, to prohibit e.g. this: variable {} and: variable = "" Before this change we were catching this for most constructs only if there were no _valid_ blocks of the same name in the same file. For modules in particular, we were not catching this at all. Now we detect this for all kinds of block (resources had a pre-existing check, so aren't touched here) and produce a different error message depending on which of the above incorrect forms are used. This fixes #13575.
2017-05-02 17:42:34 -05:00
variable
"
okay
"
{
}
config: manually parse variable blocks for better validation Fixes #7846 This changes from using the HCL decoder to manually decoding the `variable` blocks within the configuration. This gives us a lot more power to catch validation errors. This PR retains the same tests and fixes one additional issue (covered by a test) in the case where a variable has no named assigned.
2016-11-02 16:59:16 -05:00
variable
{
name
=
"
test
"
default
=
"
test_value
"
type
=
"
string
"
}
Reference in New Issue
Copy Permalink