mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Merge pull request #32307 from hashicorp/jbardin/output-perf
don't re-set changes for refreshed outputs
This commit is contained in:
commit
c66a797f2a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user