Skip to content

Commit

Permalink
backport of commit c9d6f82
Browse files Browse the repository at this point in the history
  • Loading branch information
jbardin committed Nov 28, 2022
1 parent 7346342 commit 9ed5f20
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 9ed5f20

Please sign in to comment.