Skip to content

command/init: Fail if -input=false but required#29805

Merged
alisdair merged 1 commit intomainfrom
alisdair/fix-init-workspace-select-input-false
Oct 26, 2021
Merged

command/init: Fail if -input=false but required#29805
alisdair merged 1 commit intomainfrom
alisdair/fix-init-workspace-select-input-false

Conversation

@alisdair
Copy link
Copy Markdown
Contributor

When running terraform init against a backend with multiple workspaces, none of which are the currently indicated local workspace, Terraform prompts the user to choose a workspace from the list. In automation, using the -input=false argument should disable asking for input, but previously would hang instead.

Fixes #29800.

When running `terraform init` against a backend with multiple
workspaces, none of which are the currently indicated local workspace,
Terraform prompts the user to choose a workspace from the list. In
automation, using the `-input=false` argument should disable asking for
input, but previously would hang instead.
@alisdair alisdair added cli 1.0-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged labels Oct 25, 2021
@alisdair alisdair requested a review from a team October 25, 2021 19:12
@alisdair alisdair self-assigned this Oct 25, 2021
Copy link
Copy Markdown
Contributor

@omarismail omarismail left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Copy Markdown
Member

@chrisarcand chrisarcand left a comment

Choose a reason for hiding this comment

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

👍🏻

@github-actions
Copy link
Copy Markdown
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

1.0-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged cli

Projects

None yet

Development

Successfully merging this pull request may close these issues.

terraform init doesn't honour input=false or automation flags for invalid workspace

3 participants