]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/hashicorp/terraform/terraform/node_output.go
Transfer of provider code
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / terraform / terraform / node_output.go
index e28e6f02fd43dd9d7282f06d68cb77544e121c4e..9017a63c40fbd72b4c391093e443bbbb4cfdda66 100644 (file)
@@ -5,6 +5,7 @@ import (
        "strings"
 
        "github.com/hashicorp/terraform/config"
+       "github.com/hashicorp/terraform/dag"
 )
 
 // NodeApplyableOutput represents an output that is "applyable":
@@ -35,6 +36,14 @@ func (n *NodeApplyableOutput) RemoveIfNotTargeted() bool {
        return true
 }
 
+// GraphNodeTargetDownstream
+func (n *NodeApplyableOutput) TargetDownstream(targetedDeps, untargetedDeps *dag.Set) bool {
+       // If any of the direct dependencies of an output are targeted then
+       // the output must always be targeted as well, so its value will always
+       // be up-to-date at the completion of an apply walk.
+       return true
+}
+
 // GraphNodeReferenceable
 func (n *NodeApplyableOutput) ReferenceableName() []string {
        name := fmt.Sprintf("output.%s", n.Config.Name)