@@ -7,16 +7,17 @@ import (
77 "github.com/hashicorp/terraform/config/module"
88)
99
10- // NodeApplyableVariable represents a variable during the apply step.
11- type NodeApplyableVariable struct {
10+ // NodeApplyableModuleVariable represents a module variable input during
11+ // the apply step.
12+ type NodeApplyableModuleVariable struct {
1213 PathValue []string
1314 Config * config.Variable // Config is the var in the config
1415 Value * config.RawConfig // Value is the value that is set
1516
1617 Module * module.Tree // Antiquated, want to remove
1718}
1819
19- func (n * NodeApplyableVariable ) Name () string {
20+ func (n * NodeApplyableModuleVariable ) Name () string {
2021 result := fmt .Sprintf ("var.%s" , n .Config .Name )
2122 if len (n .PathValue ) > 1 {
2223 result = fmt .Sprintf ("%s.%s" , modulePrefixStr (n .PathValue ), result )
@@ -26,7 +27,7 @@ func (n *NodeApplyableVariable) Name() string {
2627}
2728
2829// GraphNodeSubPath
29- func (n * NodeApplyableVariable ) Path () []string {
30+ func (n * NodeApplyableModuleVariable ) Path () []string {
3031 // We execute in the parent scope (above our own module) so that
3132 // we can access the proper interpolations.
3233 if len (n .PathValue ) > 2 {
@@ -37,20 +38,20 @@ func (n *NodeApplyableVariable) Path() []string {
3738}
3839
3940// GraphNodeReferenceGlobal
40- func (n * NodeApplyableVariable ) ReferenceGlobal () bool {
41+ func (n * NodeApplyableModuleVariable ) ReferenceGlobal () bool {
4142 // We have to create fully qualified references because we cross
4243 // boundaries here: our ReferenceableName is in one path and our
4344 // References are from another path.
4445 return true
4546}
4647
4748// GraphNodeReferenceable
48- func (n * NodeApplyableVariable ) ReferenceableName () []string {
49+ func (n * NodeApplyableModuleVariable ) ReferenceableName () []string {
4950 return []string {n .Name ()}
5051}
5152
5253// GraphNodeEvalable
53- func (n * NodeApplyableVariable ) EvalTree () EvalNode {
54+ func (n * NodeApplyableModuleVariable ) EvalTree () EvalNode {
5455 // If we have no value, do nothing
5556 if n .Value == nil {
5657 return & EvalNoop {}
0 commit comments