]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/hashicorp/terraform/terraform/node_resource_apply_instance.go
update vendor and go.mod
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / terraform / terraform / node_resource_apply_instance.go
index dad7bfc5fd98560054ac9abf6725eb9c3f0f01c4..d79532467f60f9f267c0c0f573b0e81c28c6eb41 100644 (file)
@@ -101,13 +101,6 @@ func (n *NodeApplyableResourceInstance) References() []*addrs.Reference {
 func (n *NodeApplyableResourceInstance) EvalTree() EvalNode {
        addr := n.ResourceInstanceAddr()
 
-       // State still uses legacy-style internal ids, so we need to shim to get
-       // a suitable key to use.
-       stateId := NewLegacyResourceInstanceAddress(addr).stateId()
-
-       // Determine the dependencies for the state.
-       stateDeps := n.StateReferences()
-
        if n.Config == nil {
                // This should not be possible, but we've got here in at least one
                // case as discussed in the following issue:
@@ -132,15 +125,15 @@ func (n *NodeApplyableResourceInstance) EvalTree() EvalNode {
        // Eval info is different depending on what kind of resource this is
        switch n.Config.Mode {
        case addrs.ManagedResourceMode:
-               return n.evalTreeManagedResource(addr, stateId, stateDeps)
+               return n.evalTreeManagedResource(addr)
        case addrs.DataResourceMode:
-               return n.evalTreeDataResource(addr, stateId, stateDeps)
+               return n.evalTreeDataResource(addr)
        default:
                panic(fmt.Errorf("unsupported resource mode %s", n.Config.Mode))
        }
 }
 
-func (n *NodeApplyableResourceInstance) evalTreeDataResource(addr addrs.AbsResourceInstance, stateId string, stateDeps []addrs.Referenceable) EvalNode {
+func (n *NodeApplyableResourceInstance) evalTreeDataResource(addr addrs.AbsResourceInstance) EvalNode {
        var provider providers.Interface
        var providerSchema *ProviderSchema
        var change *plans.ResourceInstanceChange
@@ -206,7 +199,7 @@ func (n *NodeApplyableResourceInstance) evalTreeDataResource(addr addrs.AbsResou
        }
 }
 
-func (n *NodeApplyableResourceInstance) evalTreeManagedResource(addr addrs.AbsResourceInstance, stateId string, stateDeps []addrs.Referenceable) EvalNode {
+func (n *NodeApplyableResourceInstance) evalTreeManagedResource(addr addrs.AbsResourceInstance) EvalNode {
        // Declare a bunch of variables that are used for state during
        // evaluation. Most of this are written to by-address below.
        var provider providers.Interface