mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-28 18:01:01 -06:00
67d441b131
* remove leftover debug line * terraform: refactor ProviderEvalTree This PR refactors the ProviderEvalTree by folding the entire tree into straight-through code in NodeApplyableProvider Execute (formally EvalTree). The EvalConfigProvider functions were refactored into NodeApplyableProvider functions (since that was the only place they were used). I also removed the unused node_provider_disabled code. * revert removal of graphNodeCloseProvider EvalTree, replace with Execute
16 lines
454 B
Go
16 lines
454 B
Go
package terraform
|
|
|
|
// NodeEvalableProvider represents a provider during an "eval" walk.
|
|
// This special provider node type just initializes a provider and
|
|
// fetches its schema, without configuring it or otherwise interacting
|
|
// with it.
|
|
type NodeEvalableProvider struct {
|
|
*NodeAbstractProvider
|
|
}
|
|
|
|
// GraphNodeExecutable
|
|
func (n *NodeEvalableProvider) Execute(ctx EvalContext, op walkOperation) error {
|
|
_, err := ctx.InitProvider(n.Addr)
|
|
return err
|
|
}
|