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

Bug | Terraform init doesn't raise the exit error if it fails internally #272

Closed
Franr opened this issue May 31, 2024 · 1 comment
Closed
Assignees
Labels
bug Something isn't working

Comments

@Franr
Copy link
Contributor

Franr commented May 31, 2024

Describe the Bug

If you run leverage terraform init, and the init command fails for some reason, it finish with no exit error.

Expected Behavior

It should catch and raise the error code gracefully.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Go to le-tf-infra-aws/apps-devstg/global/base-identities
  2. Use a toolbox image with terraform version 1.5 (e.g. TERRAFORM_IMAGE_TAG=1.5.0-0.1.13)
  3. Run leverage terraform init
  4. An error will pop up: Error: Unsupported Terraform Core version but the exit code will be 0.
@Franr
Copy link
Contributor Author

Franr commented Oct 19, 2024

Fixed in #269 / v1.13.0 release

@Franr Franr closed this as completed Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant