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
|
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
|
return nil
|
||||||
|
|
Loading…
Reference in New Issue