attach a deep copy of ResourceState

This commit is contained in:
James Bardin 2018-12-17 18:08:53 -05:00
parent 292535820d
commit a4ab055fbd
1 changed files with 3 additions and 1 deletions

View File

@ -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