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,
},
&EvalDiffDestroy{
Addr: addr.Resource,
State: &state,
Output: &change,
OutputState: &state, // Will point to a nil state after this complete, signalling destroyed
Addr: addr.Resource,
State: &state,
ProviderAddr: n.ResolvedProvider,
Output: &change,
OutputState: &state, // Will point to a nil state after this complete, signalling destroyed
},
&EvalCheckPreventDestroy{
Addr: addr.Resource,