Skip to content

Commit

Permalink
config: allow TerraformVars in count
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchellh committed Mar 13, 2017
1 parent d475fc2 commit e2ca2c5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}

Expand Down

0 comments on commit e2ca2c5

Please sign in to comment.