configs/configupgrade: Test for removing commas between block arguments
The comma-separated syntax is now reserved only for object constructor expressions in attribute values, so the upgrade tool rewrites block arguments to be newline-separated instead. This was already working but we didn't have an explicit test for it until now.
This commit is contained in:
parent
54bb0b1e25
commit
085ac6d8ca
|
@ -0,0 +1,7 @@
|
|||
locals {
|
||||
foo = "bar", baz = "boop"
|
||||
}
|
||||
|
||||
resource "test_instance" "foo" {
|
||||
image = "b", type = "d"
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
locals {
|
||||
foo = "bar"
|
||||
baz = "boop"
|
||||
}
|
||||
|
||||
resource "test_instance" "foo" {
|
||||
image = "b"
|
||||
type = "d"
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
terraform {
|
||||
required_version = ">= 0.12"
|
||||
}
|
Loading…
Reference in New Issue