diff --git a/terraform/transform_output.go b/terraform/transform_output.go index 4d51dabd6..b926b2fd1 100644 --- a/terraform/transform_output.go +++ b/terraform/transform_output.go @@ -86,10 +86,7 @@ func (t *destroyRootOutputTransformer) Transform(g *Graph) error { log.Printf("[TRACE] creating %s", node.Name()) g.Add(node) - deps, err := g.Descendents(v) - if err != nil { - return err - } + deps := g.UpEdges(v) // the destroy node must depend on the eval node deps.Add(v)