leverage icon indicating copy to clipboard operation
leverage copied to clipboard

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

Open Franr opened this issue 8 months ago • 0 comments

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 avatar May 31 '24 18:05 Franr