mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Fixes #10729 Destruction ordering wasn't taking into account ordering implied through variables across module boundaries. This is because to build the destruction ordering we create a non-destruction graph to determine the _creation_ ordering (to properly flip edges). This creation graph we create wasn't including module variables. This PR adds that transform to the graph.
12 lines
171 B
HCL
12 lines
171 B
HCL
variable "input" { default = "value" }
|
|
|
|
module "A" {
|
|
source = "./A"
|
|
input = "${var.input}"
|
|
}
|
|
|
|
module "B" {
|
|
source = "./A"
|
|
input = "${module.A.output}"
|
|
}
|