Merge pull request #32307 from hashicorp/jbardin/output-perf

don't re-set changes for refreshed outputs
This commit is contained in:
James Bardin 2022-11-30 14:06:50 -05:00 committed by GitHub
commit c66a797f2a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -400,7 +400,8 @@ If you do intend to export this data, annotate the output value as sensitive by
// If we were able to evaluate a new value, we can update that in the
// refreshed state as well.
if state = ctx.RefreshState(); state != nil && val.IsWhollyKnown() {
n.setValue(state, changes, val)
// we only need to update the state, do not pass in the changes again
n.setValue(state, nil, val)
}
return diags