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.
pull/20018/head
Martin Atkins 7 years ago
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"
}
Loading…
Cancel
Save