2016-09-19 18:28:24 +02:00
|
|
|
package terraform
|
|
|
|
|
2018-08-27 21:03:20 +02:00
|
|
|
import (
|
|
|
|
"github.com/hashicorp/terraform/configs"
|
|
|
|
)
|
|
|
|
|
|
|
|
// NodeCountBoundary fixes up any transitions between "each modes" in objects
|
|
|
|
// saved in state, such as switching from NoEach to EachInt.
|
|
|
|
type NodeCountBoundary struct {
|
|
|
|
Config *configs.Config
|
|
|
|
}
|
2016-09-19 18:28:24 +02:00
|
|
|
|
|
|
|
func (n *NodeCountBoundary) Name() string {
|
2018-08-27 21:03:20 +02:00
|
|
|
return "meta.count-boundary (EachMode fixup)"
|
2016-09-19 18:28:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
// GraphNodeEvalable
|
|
|
|
func (n *NodeCountBoundary) EvalTree() EvalNode {
|
2018-08-27 21:03:20 +02:00
|
|
|
return &EvalCountFixZeroOneBoundaryGlobal{
|
|
|
|
Config: n.Config,
|
|
|
|
}
|
2016-09-19 18:28:24 +02:00
|
|
|
}
|