mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Passing a literal map to a module looks like this in HCL: module "foo" { source = "./foo" somemap { somekey = "somevalue" } } The HCL parser always wraps an extra list around the map, so we need to remove that extra list wrapper when the parameter is indeed of type "map". Fixes #7140
8 lines
83 B
HCL
8 lines
83 B
HCL
module "child" {
|
|
source = "./child"
|
|
amap {
|
|
foo = "bar"
|
|
}
|
|
othermap {}
|
|
}
|