a noop change with no state has no private data

There is no change here to use the private data, and currentState may be
nil.
This commit is contained in:
James Bardin 2021-05-20 09:34:25 -04:00
parent 7b38f9dd1d
commit aaaeeffa81
1 changed files with 0 additions and 1 deletions

View File

@ -399,7 +399,6 @@ func (n *NodeAbstractResourceInstance) planDestroy(ctx EvalContext, currentState
Before: cty.NullVal(cty.DynamicPseudoType), Before: cty.NullVal(cty.DynamicPseudoType),
After: cty.NullVal(cty.DynamicPseudoType), After: cty.NullVal(cty.DynamicPseudoType),
}, },
Private: currentState.Private,
ProviderAddr: n.ResolvedProvider, ProviderAddr: n.ResolvedProvider,
} }
return noop, nil return noop, nil