mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-27 00:46:25 -06:00
559f14c3fa
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
13 lines
160 B
HCL
13 lines
160 B
HCL
variable "amap" {
|
|
type = "map"
|
|
}
|
|
|
|
variable "othermap" {
|
|
type = "map"
|
|
}
|
|
|
|
resource "aws_instance" "foo" {
|
|
tags = "${var.amap}"
|
|
meta = "${var.othermap}"
|
|
}
|