Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interpolated function with an colon in any literal string arg fails #696

Closed
lamdor opened this issue Dec 18, 2014 · 3 comments · Fixed by #700
Closed

Interpolated function with an colon in any literal string arg fails #696

lamdor opened this issue Dec 18, 2014 · 3 comments · Fixed by #700

Comments

@lamdor
Copy link
Contributor

lamdor commented Dec 18, 2014

If I have a template with

test.tf:

output "test_output" {
  value = "${concat("abc", ":def")}"
}

And I apply that, I get:

$ tf apply

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

  test_output = ${concat("abc", ":def")}

It's the colon that makes the difference. If I change that to a comma:

test.tf (with a comma instead):

output "test_output" {
  value = "${concat("abc", ",def")}"
}

An apply gives:

$ tf apply

Apply complete! Resources: 0 added, 0 changed, 0 destroyed.

Outputs:

  test_output = abc,def

Also to note, it's not just outputs, but anywhere else that it could be interpolated at.

I tried to look into fixing this, but my go parser skills (what I think might be causing it) are pretty weak. Any ideas?

@lamdor
Copy link
Contributor Author

lamdor commented Dec 18, 2014

Another thing to note that this is on master:

$ terraform version
Terraform v0.3.6.dev (6a6ae12fd25045a47edc27b65e304666652fb167)

Your version of Terraform is out of date! The latest version
is 0.3.5. You can update by downloading from www.terraform.io`

@lamdor
Copy link
Contributor Author

lamdor commented Dec 18, 2014

Same thing happens on v.0.3.5 as well

@ghost
Copy link

ghost commented May 4, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators May 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant