Skip to content

Commit

Permalink
Merge pull request #32315 from hashicorp/backport/jbardin/output-perf…
Browse files Browse the repository at this point in the history
…/honestly-engaged-tetra

Backport of don't re-set changes for refreshed outputs into v1.3
  • Loading branch information
jbardin committed Nov 30, 2022
2 parents 7346342 + 9ed5f20 commit 23685f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/terraform/node_output.go
Expand Up @@ -399,7 +399,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
Expand Down

0 comments on commit 23685f7

Please sign in to comment.