Skip to content

Commit 848ee9f

Browse files
authored
helper/schema: Ensure InstanceDiff RawConfig/RawPlan/RawState are always copied during planning (#1024)
Reference: #1023
1 parent 5ba37ad commit 848ee9f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changelog/1024.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:bug
2+
helper/schema: Ensured `RawConfig`, `RawPlan`, and `RawState` are correctly copied during planning with recreation
3+
```

helper/schema/schema.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -722,6 +722,9 @@ func (m schemaMap) Diff(
722722

723723
// Preserve the DestroyTainted flag
724724
result2.DestroyTainted = result.DestroyTainted
725+
result2.RawConfig = result.RawConfig
726+
result2.RawPlan = result.RawPlan
727+
result2.RawState = result.RawState
725728

726729
// Reset the data to not contain state. We have to call init()
727730
// again in order to reset the FieldReaders.

0 commit comments

Comments
 (0)