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:
James Bardin 2019-12-12 15:00:47 -05:00
parent dd8ab5812e
commit d2a9dd3cef
1 changed files with 0 additions and 1 deletions

View File

@ -161,7 +161,6 @@ func (t *DiffTransformer) Transform(g *Graph) error {
NodeAbstractResourceInstance: abstract,
DeposedKey: dk,
}
node.(*NodeDestroyResourceInstance).ModifyCreateBeforeDestroy(createBeforeDestroy)
} else {
node = &NodeDestroyDeposedResourceInstanceObject{
NodeAbstractResourceInstance: abstract,