mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
228d881722
EvalContext.InitProvider no longer needs the redundant typ String terraform.contextComponentFactory refactored to take an addrs.Provider instead of a string.
19 lines
436 B
Go
19 lines
436 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
|
|
}
|
|
|
|
// GraphNodeEvalable
|
|
func (n *NodeEvalableProvider) EvalTree() EvalNode {
|
|
addr := n.Addr
|
|
|
|
return &EvalInitProvider{
|
|
Addr: addr,
|
|
}
|
|
}
|