terraform: do the transitive reduction as part of the graph builder
This commit is contained in:
parent
903e49162d
commit
9eb7ebbddd
|
@ -109,5 +109,9 @@ func (b *BuiltinGraphBuilder) Steps() []GraphTransformer {
|
|||
|
||||
// Make sure we create one root
|
||||
&RootTransformer{},
|
||||
|
||||
// Perform the transitive reduction to make our graph a bit
|
||||
// more sane if possible (it usually is possible).
|
||||
&TransitiveReductionTransformer{},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -125,14 +125,11 @@ const testBasicGraphBuilderStr = `
|
|||
const testBuiltinGraphBuilderBasicStr = `
|
||||
aws_instance.db
|
||||
aws_instance.db (destroy tainted)
|
||||
provider.aws
|
||||
aws_instance.db (destroy tainted)
|
||||
aws_instance.web (destroy tainted)
|
||||
provider.aws
|
||||
aws_instance.web
|
||||
aws_instance.db
|
||||
aws_instance.web (destroy tainted)
|
||||
provider.aws
|
||||
aws_instance.web (destroy tainted)
|
||||
provider.aws
|
||||
provider.aws
|
||||
|
|
Loading…
Reference in New Issue