Skip to content
This repository was archived by the owner on Dec 2, 2025. It is now read-only.

Allowed Exit Codes#121

Open
cmcnicholas wants to merge 2 commits intoloft-orbital:mainfrom
cmcnicholas:feat/allowed-exit-codes
Open

Allowed Exit Codes#121
cmcnicholas wants to merge 2 commits intoloft-orbital:mainfrom
cmcnicholas:feat/allowed-exit-codes

Conversation

@cmcnicholas
Copy link
Copy Markdown
Contributor

Closes #109

Additional functionality to specify allowed exit codes as per the documentation https://developer.hashicorp.com/terraform/cli/commands/plan#detailed-exitcode an exit code of 2 means Succeeded with non-empty diff (changes present)

This PR is backwards compatible but allows the executor to specify an array of allowed exit codes e.g.
npx nx plan project --allowedExitCodes=0,2 (this handles the case in the issue #109)

Copy link
Copy Markdown
Contributor

@b4nst b4nst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks! Can you please rebase?

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] Exit code 2 for terraform plan should have the option to "not fail"

2 participants