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

command: Suppress prompt for init -force-copy #29438

Merged
merged 1 commit into from
Aug 20, 2021

Conversation

alisdair
Copy link
Contributor

The -force-copy flag to init should automatically migrate state. Previously this was not applied to one case: when migrating from a backend with multiple workspaces to another backend supporting multiple workspaces. I believe this was an oversight so this commit fixes that.

Fixes #29239

The -force-copy flag to init should automatically migrate state.
Previously this was not applied to one case: when migrating from
a backend with multiple workspaces to another backend supporting
multiple workspaces. I believe this was an oversight so this commit
fixes that.
@alisdair alisdair added the 1.0-backport If you add this label to a PR before merging, backport-assistant will open a new PR once merged label Aug 20, 2021
@alisdair
Copy link
Contributor Author

Adding the 1.0 backport label because this bug was reported against 1.0.3, and it seems reasonable to push the fix out in the next patch release.

@alisdair alisdair merged commit 40dd429 into main Aug 20, 2021
@alisdair alisdair deleted the alisdair/init-force-copy-multiple-workspaces branch August 20, 2021 19:21
@github-actions
Copy link

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 Sep 20, 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.

bug: terraform init force-copy prompts when using workspaces
2 participants