Skip to content

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

Closed

Description

@Franr

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.

Activity

  1. added
    bug
    on May 31, 2024
  2. Franr commented on Oct 19, 2024

    @Franr
    ContributorAuthor

    Fixed in #269 / v1.13.0 release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions