core: move close transforms after flatten and destroy transforms
fixes destroy-related failures introduced by the close transforms
This commit is contained in:
parent
d6f7261190
commit
557b299c4b
|
@ -117,12 +117,10 @@ func (b *BuiltinGraphBuilder) Steps(path []string) []GraphTransformer {
|
||||||
&MissingProviderTransformer{Providers: b.Providers},
|
&MissingProviderTransformer{Providers: b.Providers},
|
||||||
&ProviderTransformer{},
|
&ProviderTransformer{},
|
||||||
&DisableProviderTransformer{},
|
&DisableProviderTransformer{},
|
||||||
&CloseProviderTransformer{},
|
|
||||||
|
|
||||||
// Provisioner-related transformations
|
// Provisioner-related transformations
|
||||||
&MissingProvisionerTransformer{Provisioners: b.Provisioners},
|
&MissingProvisionerTransformer{Provisioners: b.Provisioners},
|
||||||
&ProvisionerTransformer{},
|
&ProvisionerTransformer{},
|
||||||
&CloseProvisionerTransformer{},
|
|
||||||
|
|
||||||
// Run our vertex-level transforms
|
// Run our vertex-level transforms
|
||||||
&VertexTransformer{
|
&VertexTransformer{
|
||||||
|
@ -166,6 +164,10 @@ func (b *BuiltinGraphBuilder) Steps(path []string) []GraphTransformer {
|
||||||
Then: &PruneDestroyTransformer{Diff: b.Diff, State: b.State},
|
Then: &PruneDestroyTransformer{Diff: b.Diff, State: b.State},
|
||||||
}),
|
}),
|
||||||
|
|
||||||
|
// Insert nodes to close opened plugin connections
|
||||||
|
&CloseProviderTransformer{},
|
||||||
|
&CloseProvisionerTransformer{},
|
||||||
|
|
||||||
// Make sure we have a single root after the above changes.
|
// Make sure we have a single root after the above changes.
|
||||||
// This is the 2nd root transformer. In practice this shouldn't
|
// This is the 2nd root transformer. In practice this shouldn't
|
||||||
// actually matter as the RootTransformer is idempotent.
|
// actually matter as the RootTransformer is idempotent.
|
||||||
|
|
Loading…
Reference in New Issue