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
|
// The concrete resource factory we'll use for oprhans
|
||||||
concreteResourceOrphan := func(a *NodeAbstractResource) dag.Vertex {
|
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{
|
return &NodePlannableResourceOrphan{
|
||||||
NodeAbstractResource: a,
|
NodeAbstractResource: a,
|
||||||
}
|
}
|
||||||
|
|
|
@ -48,6 +48,7 @@ func (n *NodePlannableResourceOrphan) EvalTree() EvalNode {
|
||||||
},
|
},
|
||||||
&EvalCheckPreventDestroy{
|
&EvalCheckPreventDestroy{
|
||||||
Resource: n.Config,
|
Resource: n.Config,
|
||||||
|
ResourceId: stateId,
|
||||||
Diff: &diff,
|
Diff: &diff,
|
||||||
},
|
},
|
||||||
&EvalWriteDiff{
|
&EvalWriteDiff{
|
||||||
|
|
Loading…
Reference in New Issue