mirror of https://github.com/hashicorp/terraform
A new problem was introduced by the prior fixes for destroy interpolation messages when resources depend on module variables with a _count_ attribute, this makes the variable crucial for properly building the graph - even in destroys. So removing all module variables from the graph as noops was overzealous. By borrowing the logic in `DestroyEdgeInclude` we are able to determine if we need to keep a given module variable relatively easily. I'd like to overhaul the `Destroy: true` implementation so that it does not depend on config at all, but I want to continue for now with the targeted fixes that we can backport into the 0.6 series.pull/6753/head
parent
eedc523281
commit
f33ef43195
@ -0,0 +1,5 @@
|
||||
variable "mod_count" { }
|
||||
|
||||
resource "aws_instance" "foo" {
|
||||
count = "${var.mod_count}"
|
||||
}
|
||||
@ -0,0 +1,4 @@
|
||||
module "child" {
|
||||
source = "./child"
|
||||
mod_count = "3"
|
||||
}
|
||||
Loading…
Reference in new issue