]> git.immae.eu Git - github/fretlink/terraform-provider-statuscake.git/blobdiff - vendor/github.com/hashicorp/terraform/terraform/interpolate.go
update vendor and go.mod
[github/fretlink/terraform-provider-statuscake.git] / vendor / github.com / hashicorp / terraform / terraform / interpolate.go
index 26c185751a69a14e99efe7d335c376acfd93e934..97bb1f6998f0deb354c9c1bf9f062f052b905256 100644 (file)
@@ -11,16 +11,11 @@ import (
        "github.com/hashicorp/hil"
        "github.com/hashicorp/hil/ast"
        "github.com/hashicorp/terraform/config"
+       "github.com/hashicorp/terraform/config/hcl2shim"
        "github.com/hashicorp/terraform/config/module"
        "github.com/hashicorp/terraform/flatmap"
 )
 
-const (
-       // VarEnvPrefix is the prefix of variables that are read from
-       // the environment to set variables here.
-       VarEnvPrefix = "TF_VAR_"
-)
-
 // Interpolater is the structure responsible for determining the values
 // for interpolations such as `aws_instance.foo.bar`.
 type Interpolater struct {
@@ -71,7 +66,7 @@ func (i *Interpolater) valueCountVar(
 func unknownVariable() ast.Variable {
        return ast.Variable{
                Type:  ast.TypeUnknown,
-               Value: config.UnknownVariableValue,
+               Value: hcl2shim.UnknownVariableValue,
        }
 }
 
@@ -659,7 +654,7 @@ func (i *Interpolater) interpolateComplexTypeAttribute(
                // ".#" count field is marked as unknown to indicate "this whole list is
                // unknown". We must honor that meaning here so computed references can be
                // treated properly during the plan phase.
-               if lengthAttr == config.UnknownVariableValue {
+               if lengthAttr == hcl2shim.UnknownVariableValue {
                        return unknownVariable(), nil
                }
 
@@ -675,7 +670,7 @@ func (i *Interpolater) interpolateComplexTypeAttribute(
                // ".%" count field is marked as unknown to indicate "this whole list is
                // unknown". We must honor that meaning here so computed references can be
                // treated properly during the plan phase.
-               if lengthAttr == config.UnknownVariableValue {
+               if lengthAttr == hcl2shim.UnknownVariableValue {
                        return unknownVariable(), nil
                }