mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-11 16:15:33 -06:00
attach a deep copy of ResourceState
This commit is contained in:
parent
292535820d
commit
a4ab055fbd
@ -59,7 +59,9 @@ func (t *AttachStateTransformer) Transform(g *Graph) error {
|
||||
continue
|
||||
}
|
||||
|
||||
an.AttachResourceState(rs)
|
||||
// make sure to attach a copy of the state, so instances can modify the
|
||||
// same ResourceState.
|
||||
an.AttachResourceState(rs.DeepCopy())
|
||||
}
|
||||
|
||||
return nil
|
||||
|
Loading…
Reference in New Issue
Block a user