the invalid variable syntax error message was misleading. changed text a little bit (#11953)

This commit is contained in:
Benjamin Lau 2017-04-10 06:37:12 -07:00 committed by Clint
parent 906cd0946a
commit ba09e7dc5a
1 changed files with 2 additions and 2 deletions

View File

@ -306,10 +306,10 @@ func (i *Interpolater) valueSimpleVar(
// relied on this for their template_file data sources. We should // relied on this for their template_file data sources. We should
// remove this at some point but there isn't any rush. // remove this at some point but there isn't any rush.
return fmt.Errorf( return fmt.Errorf(
"invalid variable syntax: %q. If this is part of inline `template` parameter\n"+ "invalid variable syntax: %q. Did you mean 'var.%s'? If this is part of inline `template` parameter\n"+
"then you must escape the interpolation with two dollar signs. For\n"+ "then you must escape the interpolation with two dollar signs. For\n"+
"example: ${a} becomes $${a}.", "example: ${a} becomes $${a}.",
n) n, n)
} }
func (i *Interpolater) valueTerraformVar( func (i *Interpolater) valueTerraformVar(