github.com/kanishk98/terraform@v1.3.0-dev.0.20220917174235-661ca8088a6a/internal/terraform/node_provider_eval.go (about) 1 package terraform 2 3 import "github.com/hashicorp/terraform/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 }