Skip to content

Commit

Permalink
Merge pull request #32307 from hashicorp/jbardin/output-perf
Browse files Browse the repository at this point in the history
don't re-set changes for refreshed outputs
  • Loading branch information
jbardin committed Nov 30, 2022
2 parents e216b81 + c9d6f82 commit c66a797
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/terraform/node_output.go
Expand Up @@ -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
Expand Down

0 comments on commit c66a797

Please sign in to comment.