-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
substr(var.small_string, -4, -1) crashes if the string is not long enough #17041
Comments
marcosdiez
changed the title
substr(var.small_string, -4, -1) crasehs if the string is not long enough
substr(var.small_string, -4, -1) crashes if the string is not long enough
Jan 5, 2018
minamijoyo
added a commit
to minamijoyo/terraform
that referenced
this issue
Jan 5, 2018
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
locked and limited conversation to collaborators
Apr 5, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Terraform Version
Terraform Configuration Files
Debug Output
https://gist.github.com/marcosdiez/e3fed4bf49274706be3c656b03cc0498
Crash Output
https://gist.github.com/marcosdiez/c648c31911b1e5a3155fba4ddb4598ba
Expected Behavior
terraform validate
(andterraform plan
andterraform apply
should complain that string (var.small_string
) is too small and therefore it can't proceedActual Behavior
it crashes
Steps to Reproduce
Additional Context
The issue is quite simple:
substr
should check if the string has the appropriate size.-->
The text was updated successfully, but these errors were encountered: