mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-24 16:10:46 -06:00
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:
parent
41befeaa37
commit
308eb5f47f
@ -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{},
|
||||
|
@ -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{},
|
||||
|
Loading…
Reference in New Issue
Block a user