diff --git a/internal/terraform/eval_for_each.go b/internal/terraform/eval_for_each.go index d605f127ec..1a011a4564 100644 --- a/internal/terraform/eval_for_each.go +++ b/internal/terraform/eval_for_each.go @@ -329,7 +329,7 @@ func (ev *forEachEvaluator) validateResourceOrActionForEach(forEachVal cty.Value } // We don't care about the returned value here, only the diagnostics - _, deprecationDiags := ev.ctx.Deprecations().Validate(forEachVal, ev.ctx.Path().Module(), ev.expr.Range().Ptr()) + forEachVal, deprecationDiags := ev.ctx.Deprecations().Validate(forEachVal, ev.ctx.Path().Module(), ev.expr.Range().Ptr()) diags = diags.Append(deprecationDiags)