don't override CreateBeforeDestroy from diff
If the Diff is only a delete action, we can't override CreateBeforeDestroy, because it will always be false and prevent the stored state value from being used.
This commit is contained in:
parent
dd8ab5812e
commit
d2a9dd3cef
|
@ -161,7 +161,6 @@ func (t *DiffTransformer) Transform(g *Graph) error {
|
|||
NodeAbstractResourceInstance: abstract,
|
||||
DeposedKey: dk,
|
||||
}
|
||||
node.(*NodeDestroyResourceInstance).ModifyCreateBeforeDestroy(createBeforeDestroy)
|
||||
} else {
|
||||
node = &NodeDestroyDeposedResourceInstanceObject{
|
||||
NodeAbstractResourceInstance: abstract,
|
||||
|
|
Loading…
Reference in New Issue