From 9ed5f201a75099cb63f900c5092322e69e8a2bc5 Mon Sep 17 00:00:00 2001 From: James Bardin Date: Mon, 21 Nov 2022 16:04:21 +0000 Subject: [PATCH] backport of commit c9d6f82ac552cddd715343f8bdd61f1bcbe55fcb --- internal/terraform/node_output.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/terraform/node_output.go b/internal/terraform/node_output.go index 74b074123d0e..ed49632a8523 100644 --- a/internal/terraform/node_output.go +++ b/internal/terraform/node_output.go @@ -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