core: Record correct provider address in orphan destroy plan

This commit is contained in:
Martin Atkins 2018-08-31 17:07:13 -07:00
parent 9af67806fc
commit 9c9a918790
1 changed files with 5 additions and 4 deletions

View File

@ -57,10 +57,11 @@ func (n *NodePlannableResourceInstanceOrphan) EvalTree() EvalNode {
Output: &state, Output: &state,
}, },
&EvalDiffDestroy{ &EvalDiffDestroy{
Addr: addr.Resource, Addr: addr.Resource,
State: &state, State: &state,
Output: &change, ProviderAddr: n.ResolvedProvider,
OutputState: &state, // Will point to a nil state after this complete, signalling destroyed Output: &change,
OutputState: &state, // Will point to a nil state after this complete, signalling destroyed
}, },
&EvalCheckPreventDestroy{ &EvalCheckPreventDestroy{
Addr: addr.Resource, Addr: addr.Resource,