aboutsummaryrefslogtreecommitdiffhomepage
path: root/vendor/github.com/hashicorp/terraform/terraform/node_output.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/terraform/node_output.go')
-rw-r--r--vendor/github.com/hashicorp/terraform/terraform/node_output.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/hashicorp/terraform/terraform/node_output.go b/vendor/github.com/hashicorp/terraform/terraform/node_output.go
index e28e6f0..9017a63 100644
--- a/vendor/github.com/hashicorp/terraform/terraform/node_output.go
+++ b/vendor/github.com/hashicorp/terraform/terraform/node_output.go
@@ -5,6 +5,7 @@ import (
5 "strings" 5 "strings"
6 6
7 "github.com/hashicorp/terraform/config" 7 "github.com/hashicorp/terraform/config"
8 "github.com/hashicorp/terraform/dag"
8) 9)
9 10
10// NodeApplyableOutput represents an output that is "applyable": 11// NodeApplyableOutput represents an output that is "applyable":
@@ -35,6 +36,14 @@ func (n *NodeApplyableOutput) RemoveIfNotTargeted() bool {
35 return true 36 return true
36} 37}
37 38
39// GraphNodeTargetDownstream
40func (n *NodeApplyableOutput) TargetDownstream(targetedDeps, untargetedDeps *dag.Set) bool {
41 // If any of the direct dependencies of an output are targeted then
42 // the output must always be targeted as well, so its value will always
43 // be up-to-date at the completion of an apply walk.
44 return true
45}
46
38// GraphNodeReferenceable 47// GraphNodeReferenceable
39func (n *NodeApplyableOutput) ReferenceableName() []string { 48func (n *NodeApplyableOutput) ReferenceableName() []string {
40 name := fmt.Sprintf("output.%s", n.Config.Name) 49 name := fmt.Sprintf("output.%s", n.Config.Name)