terraform: remove jank computed check for count

This commit is contained in:
Mitchell Hashimoto 2014-10-02 16:32:11 -07:00
parent 5090678168
commit 581d1dee8c
1 changed files with 0 additions and 8 deletions

View File

@ -1595,14 +1595,6 @@ func (p *graphSharedProvider) MergeConfig(
// Expand will expand this node into a subgraph if Expand is set.
func (n *GraphNodeResource) Expand() ([]*depgraph.Noun, error) {
// If the count configuration is empty then it means that the
// count is computed. In this case, we set the count to one
// but set a flag telling upstream that we're computing.
if len(n.Config.RawConfig.Config()) == 0 {
return nil, fmt.Errorf(
"%s: computed count attribute not allowed", n.Resource.Id)
}
// Expand the count out, which should be interpolated at this point.
count, err := n.Config.Count()
if err != nil {