config: allow TerraformVars in count

This commit is contained in:
Mitchell Hashimoto 2017-03-13 16:38:54 -07:00
parent d475fc29a8
commit e2ca2c5911
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A
1 changed files with 4 additions and 1 deletions

View File

@ -501,10 +501,13 @@ func (c *Config) Validate() error {
// Good
case *ModuleVariable:
case *ResourceVariable:
case *TerraformVariable:
case *UserVariable:
default:
panic(fmt.Sprintf("Unknown type in count var in %s: %T", n, v))
errs = append(errs, fmt.Errorf(
"Internal error. Unknown type in count var in %s: %T",
n, v))
}
}