mirror of https://github.com/hashicorp/terraform
Fix nested module "unknown variable" during dest (#7496)
* Fix nested module "unknown variable" during dstry During a destroy with nested modules, accessing a variable between them causes an "unknown variable accessed" during destroy.pull/7319/merge
parent
86ff2ca7a9
commit
21e2173e0a
@ -0,0 +1 @@
|
||||
variable "bottom_param" {}
|
||||
@ -0,0 +1,8 @@
|
||||
variable "param" {}
|
||||
|
||||
resource "null_resource" "n" {}
|
||||
|
||||
module "bottom" {
|
||||
source = "./bottom"
|
||||
bottom_param = "${var.param}"
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
module "middle" {
|
||||
source = "./middle"
|
||||
param = "foo"
|
||||
}
|
||||
Loading…
Reference in new issue