You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe since you're directly processing the human-readable CLI output, it's also receiving a newline character. (wc has a count for the newline character)
You could trim that with something like tr: terraform apply | tail -1 | cut -d '"' -f 2 | tr -d '\n' | wc
We typically recommend using one the machine-readable JSON output for external processes, which I think may be an easier path, for example:
Terraform CLI and Provider Versions
Terraform Configuration
Expected Behavior
Length should be the exact amount of characters defined in length arg.
Actual Behavior
While asking for a specific number, it creates an unwanted additional one.
If we ask for 30, we get 31 (29 => 30, 28 => 29 etc)
Steps to Reproduce
terraform init
terraform apply | tail -1 | cut -d '"' -f 2| wc
How much impact is this issue causing?
High
Logs
https://gist.github.com/LeBaronDeCharlus/147648c236408cf6c526522af4a5fe2f
Additional Information
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: