add CountBoundaryTransformer after targeting

no need to have the extra nodes and edges in the graph when we're
traversing everything for targeting
This commit is contained in:
James Bardin 2020-06-23 17:22:44 -04:00
parent 41befeaa37
commit 308eb5f47f
2 changed files with 8 additions and 8 deletions

View File

@ -176,14 +176,14 @@ func (b *ApplyGraphBuilder) Steps() []GraphTransformer {
// These include variables, locals, and instance expanders.
&pruneUnusedNodesTransformer{},
// Target
&TargetsTransformer{Targets: b.Targets},
// Add the node to fix the state count boundaries
&CountBoundaryTransformer{
Config: b.Config,
},
// Target
&TargetsTransformer{Targets: b.Targets},
// Close opened plugin connections
&CloseProviderTransformer{},
&CloseProvisionerTransformer{},

View File

@ -154,11 +154,6 @@ func (b *PlanGraphBuilder) Steps() []GraphTransformer {
// configuration
&attachDataResourceDependenciesTransformer{},
// Add the node to fix the state count boundaries
&CountBoundaryTransformer{
Config: b.Config,
},
// Target
&TargetsTransformer{
Targets: b.Targets,
@ -174,6 +169,11 @@ func (b *PlanGraphBuilder) Steps() []GraphTransformer {
// node due to dependency edges, to avoid graph cycles during apply.
&ForcedCBDTransformer{},
// Add the node to fix the state count boundaries
&CountBoundaryTransformer{
Config: b.Config,
},
// Close opened plugin connections
&CloseProviderTransformer{},
&CloseProvisionerTransformer{},