diff options
Diffstat (limited to 'vendor/github.com/hashicorp/terraform/terraform/interpolate.go')
-rw-r--r-- | vendor/github.com/hashicorp/terraform/terraform/interpolate.go | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vendor/github.com/hashicorp/terraform/terraform/interpolate.go b/vendor/github.com/hashicorp/terraform/terraform/interpolate.go index 0def295..22ddce6 100644 --- a/vendor/github.com/hashicorp/terraform/terraform/interpolate.go +++ b/vendor/github.com/hashicorp/terraform/terraform/interpolate.go | |||
@@ -317,9 +317,13 @@ func (i *Interpolater) valueTerraformVar( | |||
317 | n string, | 317 | n string, |
318 | v *config.TerraformVariable, | 318 | v *config.TerraformVariable, |
319 | result map[string]ast.Variable) error { | 319 | result map[string]ast.Variable) error { |
320 | if v.Field != "env" { | 320 | |
321 | // "env" is supported for backward compatibility, but it's deprecated and | ||
322 | // so we won't advertise it as being allowed in the error message. It will | ||
323 | // be removed in a future version of Terraform. | ||
324 | if v.Field != "workspace" && v.Field != "env" { | ||
321 | return fmt.Errorf( | 325 | return fmt.Errorf( |
322 | "%s: only supported key for 'terraform.X' interpolations is 'env'", n) | 326 | "%s: only supported key for 'terraform.X' interpolations is 'workspace'", n) |
323 | } | 327 | } |
324 | 328 | ||
325 | if i.Meta == nil { | 329 | if i.Meta == nil { |