mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-30 10:47:14 -06:00
15 lines
401 B
Go
15 lines
401 B
Go
package terraform
|
|
|
|
// NodeCountBoundary fixes any "count boundarie" in the state: resources
|
|
// that are named "foo.0" when they should be named "foo"
|
|
type NodeCountBoundary struct{}
|
|
|
|
func (n *NodeCountBoundary) Name() string {
|
|
return "meta.count-boundary (count boundary fixup)"
|
|
}
|
|
|
|
// GraphNodeEvalable
|
|
func (n *NodeCountBoundary) EvalTree() EvalNode {
|
|
return &EvalCountFixZeroOneBoundaryGlobal{}
|
|
}
|