github.com/muratcelep/terraform@v1.1.0-beta2-not-internal-4/not-internal/terraform/node_provider_eval.go (about) 1 package terraform 2 3 import "github.com/muratcelep/terraform/not-internal/tfdiags" 4 5 // NodeEvalableProvider represents a provider during an "eval" walk. 6 // This special provider node type just initializes a provider and 7 // fetches its schema, without configuring it or otherwise interacting 8 // with it. 9 type NodeEvalableProvider struct { 10 *NodeAbstractProvider 11 } 12 13 var _ GraphNodeExecutable = (*NodeEvalableProvider)(nil) 14 15 // GraphNodeExecutable 16 func (n *NodeEvalableProvider) Execute(ctx EvalContext, op walkOperation) (diags tfdiags.Diagnostics) { 17 _, err := ctx.InitProvider(n.Addr) 18 return diags.Append(err) 19 }