opentofu/terraform/test-fixtures/apply-local-val/main.tf
Martin Atkins 8cd0ee80e5 config: merge/append for local values
It seems that this somehow got lost in the commit/rebase shuffle and
wasn't caught by the tests that _did_ make it because they were all using
just one file.

As a result of this bug, locals would fail to work correctly in any
configuration with more than one .tf file.

Along with restoring the append/merge behavior, this also reworks some of
the tests to exercise the multi-file case as better insurance against
regressions of this sort in future.

This fixes #15969.
2017-09-01 17:51:13 -07:00

11 lines
163 B
HCL

module "child" {
source = "./child"
}
locals {
result_1 = "${module.child.result}"
result_2 = "${local.result_1}"
result_3 = "${local.result_2} world"
}