Closed ayashjorden closed 5 years ago
Hi @ayashjorden,
This was an intentional change of behavior in the 2.0.0 major release of the template
provider in order to introduce the for
and if
constructs.
To retain the old behavior, you can add a version constraint to your configuration as recommended by terraform init
:
provider "template" {
version = "~> 1.0"
}
Alternatively, you can escape the sequence by doubling the percent sign, giving %%{http_code}
.
For more information on what changed in the 2.0.0 release, see the changelog.
Hi,
double escaping does not work :
Error message : "http_code" is not a valid template control keyword
template : CODE=curl --output join.sh --silent -w "%%{http_code}" "http://${MASTERIP}/join.txt"
Provider for Openstack v "2.0.0"
For anyone who stumbles onto this in future, escaping with %%
worked for me
Hi there,
Thank you for opening an issue. Please note that we try to keep the Terraform issue tracker reserved for bug reports and feature requests. For general usage questions, please see: https://www.terraform.io/community.html.
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
Terraform Template body
^^^ the %{http_code} causes the error
Debug Output
Expected Behavior
TF template provider should not try to interpulate percent signs.
Actual Behavior
See
Debug Output
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
%{http_code}
as bodyThank you in advance, Yarden