3 // NodePlannableResourceOrphan represents a resource that is "applyable":
4 // it is ready to be applied and is represented by a diff.
5 type NodePlannableResourceOrphan struct {
9 func (n *NodePlannableResourceOrphan) Name() string {
10 return n.NodeAbstractResource.Name() + " (orphan)"
14 func (n *NodePlannableResourceOrphan) EvalTree() EvalNode {
15 addr := n.NodeAbstractResource.Addr
17 // stateId is the ID to put into the state
18 stateId := addr.stateId()
20 // Build the instance info. More of this will be populated during eval
21 info := &InstanceInfo{
24 ModulePath: normalizeModulePath(addr.Path),
27 // Declare a bunch of variables that are used for state during
28 // evaluation. Most of this are written to by-address below.
29 var diff *InstanceDiff
30 var state *InstanceState
43 &EvalCheckPreventDestroy{