mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-04-11 06:01:36 -04:00
* huge change to weave new addrs.Provider into addrs.ProviderConfig * terraform: do not include an empty string in the returned Providers / Provisioners - Fixed a minor bug where results included an extra empty string
21 lines
528 B
Go
21 lines
528 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.LegacyString(),
|
|
Addr: addr.ProviderConfig,
|
|
}
|
|
}
|