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.
pull/8635/head
James Bardin 10 years ago committed by James Nugent
parent b5992c3491
commit a3fc7e2e21

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

Loading…
Cancel
Save