Update terraform/eval_for_each.go
Co-Authored-By: Pam Selle <pam@hashicorp.com>
This commit is contained in:
parent
73a20bfb17
commit
3d8b1dea97
|
@ -77,7 +77,7 @@ func evaluateForEachExpressionValue(expr hcl.Expression, ctx EvalContext) (cty.V
|
|||
|
||||
case forEachVal.LengthInt() == 0:
|
||||
// If the map is empty ({}), return an empty map, because cty will
|
||||
// return nil when representing {} AsValueMap This also covers an empty
|
||||
// return nil when representing {} AsValueMap. This also covers an empty
|
||||
// set (toset([]))
|
||||
return forEachVal, diags
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue