--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/terraform-tool/ea34a0a5-6a03-45f9-8e14-9dff71d1e377%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Isn't just substringing without the condition nicer?
--Lowe Schmidt | +46 723 867 157
On 3 August 2017 at 16:43, Mark Snelling <ma...@bakedbeans.com> wrote:
I'm hitting a possible limitation in Terraform interpolation where I'm attempting to truncate a string if it's longer than a certain number of characters. For examplevariable name {default = "test"}resource "any_resource_type" "foo" {}I keep getting the error "substr: 'offset + length' cannot be larger than the length of the string". It looks like the true part of the ternary is still getting evaluated even though the condition is false.Am I doing something wrong or is there a better way to acheive this?Thanks in advance,Mark
--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/hashicorp/terraform/issues
IRC: #terraform-tool on Freenode
---
You received this message because you are subscribed to the Google Groups "Terraform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to terraform-too...@googlegroups.com.