Skip to content

Commit d79bf08

Browse files
use value without deprecations after validating
1 parent 2339138 commit d79bf08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/terraform/eval_for_each.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ func (ev *forEachEvaluator) validateResourceOrActionForEach(forEachVal cty.Value
329329
}
330330

331331
// We don't care about the returned value here, only the diagnostics
332-
_, deprecationDiags := ev.ctx.Deprecations().Validate(forEachVal, ev.ctx.Path().Module(), ev.expr.Range().Ptr())
332+
forEachVal, deprecationDiags := ev.ctx.Deprecations().Validate(forEachVal, ev.ctx.Path().Module(), ev.expr.Range().Ptr())
333333

334334
diags = diags.Append(deprecationDiags)
335335

0 commit comments

Comments
 (0)