From a3fc7e2e2187dbe3a3c3287dc3d849c3f98bb4bc Mon Sep 17 00:00:00 2001 From: James Bardin Date: Fri, 2 Sep 2016 14:43:14 -0400 Subject: [PATCH] remove "count" while loading a data source Data sources should be able to support counts like a resource. We need to remove "count" when we load the config because the key doesn't exist in the schema, and the resource won't validate. --- config/loader_hcl.go | 1 + 1 file changed, 1 insertion(+) diff --git a/config/loader_hcl.go b/config/loader_hcl.go index 9f85e8c07..264c4ccb1 100644 --- a/config/loader_hcl.go +++ b/config/loader_hcl.go @@ -457,6 +457,7 @@ func loadDataResourcesHcl(list *ast.ObjectList) ([]*Resource, error) { // Remove the fields we handle specially delete(config, "depends_on") delete(config, "provider") + delete(config, "count") rawConfig, err := NewRawConfig(config) if err != nil {