terraform: output the exact instance for prevent destroy on count
This commit is contained in:
parent
e6be4fefe8
commit
a2d71388c2
|
@ -52,6 +52,9 @@ func (n *NodePlannableResource) DynamicExpand(ctx EvalContext) (*Graph, error) {
|
|||
|
||||
// The concrete resource factory we'll use for oprhans
|
||||
concreteResourceOrphan := func(a *NodeAbstractResource) dag.Vertex {
|
||||
// Add the config and state since we don't do that via transforms
|
||||
a.Config = n.Config
|
||||
|
||||
return &NodePlannableResourceOrphan{
|
||||
NodeAbstractResource: a,
|
||||
}
|
||||
|
|
|
@ -48,6 +48,7 @@ func (n *NodePlannableResourceOrphan) EvalTree() EvalNode {
|
|||
},
|
||||
&EvalCheckPreventDestroy{
|
||||
Resource: n.Config,
|
||||
ResourceId: stateId,
|
||||
Diff: &diff,
|
||||
},
|
||||
&EvalWriteDiff{
|
||||
|
|
Loading…
Reference in New Issue