no module state, we shouldn't fail multivars yet

This commit is contained in:
Luke Amdor 2014-12-06 15:29:10 -06:00
parent 6dcb7166d1
commit ca48dcab4a
1 changed files with 1 additions and 1 deletions

View File

@ -1732,7 +1732,7 @@ func (c *walkContext) computeResourceMultiVariable(
}
// If we have no module in the state yet or count, return empty
if module == nil || count == 0 {
if module == nil || len(module.Resources) == 0 || count == 0 {
return "", nil
}