mirror of https://github.com/hashicorp/terraform
Merge pull request #2968 from hashicorp/b-orphan-module-deadlock
core: fix deadlock when dependable node replaced with non-dependable onepull/2988/head
commit
88dcb24c91
@ -0,0 +1,3 @@
|
||||
resource "aws_instance" "baz" {}
|
||||
|
||||
output "id" { value = "${aws_instance.baz.id}" }
|
||||
@ -0,0 +1,10 @@
|
||||
module "grandchild" {
|
||||
source = "./grandchild"
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
grandchildid = "${module.grandchild.id}"
|
||||
}
|
||||
|
||||
output "id" { value = "${aws_instance.bar.id}" }
|
||||
output "grandchild_id" { value = "${module.grandchild.id}" }
|
||||
@ -0,0 +1,10 @@
|
||||
/*
|
||||
module "child" {
|
||||
source = "./child"
|
||||
}
|
||||
|
||||
resource "aws_instance" "bar" {
|
||||
childid = "${module.child.id}"
|
||||
grandchildid = "${module.child.grandchild_id}"
|
||||
}
|
||||
*/
|
||||
Loading…
Reference in new issue