github.com/trawler/terraform@v0.10.8-0.20171106022149-4b1c7a1d9b48/terraform/node_count_boundary.go (about)

     1  package terraform
     2  
     3  // NodeCountBoundary fixes any "count boundarie" in the state: resources
     4  // that are named "foo.0" when they should be named "foo"
     5  type NodeCountBoundary struct{}
     6  
     7  func (n *NodeCountBoundary) Name() string {
     8  	return "meta.count-boundary (count boundary fixup)"
     9  }
    10  
    11  // GraphNodeEvalable
    12  func (n *NodeCountBoundary) EvalTree() EvalNode {
    13  	return &EvalCountFixZeroOneBoundaryGlobal{}
    14  }