diff --git a/terraform/transform_flatten.go b/terraform/transform_flatten.go index eb331ccef..886b6b64d 100644 --- a/terraform/transform_flatten.go +++ b/terraform/transform_flatten.go @@ -53,6 +53,8 @@ func (t *FlattenTransformer) Transform(g *Graph) error { // Go through the subgraph and flatten all the nodes for _, sv := range subgraph.Vertices() { + // If the vertex already has a subpath then we assume it has + // already been flattened. Ignore it. if _, ok := sv.(GraphNodeSubPath); ok { continue }