use value without deprecations after validating
Some checks are pending
Quick Checks / Unit Tests (push) Waiting to run
Quick Checks / Race Tests (push) Waiting to run
Quick Checks / End-to-end Tests (push) Waiting to run
Quick Checks / Code Consistency Checks (push) Waiting to run

This commit is contained in:
Daniel Schmidt 2026-01-20 20:23:31 +01:00
parent c965bd7341
commit fed3ea9e04
No known key found for this signature in database
GPG key ID: 377C3A4D62FBBBE2

View file

@ -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)