From 581d1dee8c8b5d0a3cc481d818316ae989499a92 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 2 Oct 2014 16:32:11 -0700 Subject: [PATCH] terraform: remove jank computed check for count --- terraform/graph.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/terraform/graph.go b/terraform/graph.go index ae34d6452..49cf68edb 100644 --- a/terraform/graph.go +++ b/terraform/graph.go @@ -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 {