From e2ca2c5911864fb090b21a36d35c2e294ec29ce0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Mon, 13 Mar 2017 16:38:54 -0700 Subject: [PATCH] config: allow TerraformVars in count --- config/config.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/config.go b/config/config.go index bdae585242..bf064e57a8 100644 --- a/config/config.go +++ b/config/config.go @@ -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)) } }