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.
This commit is contained in:
James Bardin 2016-09-02 14:43:14 -04:00 committed by James Nugent
parent b5992c3491
commit a3fc7e2e21
1 changed files with 1 additions and 0 deletions

View File

@ -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 {