terraform: output the exact instance for prevent destroy on count

pull/9973/head
Mitchell Hashimoto 10 years ago
parent e6be4fefe8
commit a2d71388c2
No known key found for this signature in database
GPG Key ID: 744E147AA52F5B0A

@ -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,
}

@ -47,8 +47,9 @@ func (n *NodePlannableResourceOrphan) EvalTree() EvalNode {
Output: &diff,
},
&EvalCheckPreventDestroy{
Resource: n.Config,
Diff: &diff,
Resource: n.Config,
ResourceId: stateId,
Diff: &diff,
},
&EvalWriteDiff{
Name: stateId,

Loading…
Cancel
Save