mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-02 12:17:39 -06:00
21 lines
513 B
Go
21 lines
513 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
|
||
|
relAddr := addr.ProviderConfig
|
||
|
|
||
|
return &EvalInitProvider{
|
||
|
TypeName: relAddr.Type,
|
||
|
Addr: addr.ProviderConfig,
|
||
|
}
|
||
|
}
|