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

Backport of command/meta_backend: Allow the remote backend to have no workspaces [again] into v1.1 #30165

Conversation

teamterraform
Copy link
Contributor

Backport

This PR is auto-generated from #30142 to be assessed for backporting due to the inclusion of the label 1.1-backport.

The below text is copied from the body of the original PR.


Closes #30129

A regression introduced in d72a413 (#29945)

The comment explains, but TLDR: The remote backend actually depended on being able to write it's backend state even though an 'error' occurred (no workspaces). This is expected behavior for the remote backend:

image

With the improvements made in the changes mentioned above, an error now means that the backend config should not be written to disk......except in this particular situation, sadly.


There are no tests for this, I know; we don't really have any sort of test harness for initializing this backend (all backend tests like this just use the local backend).

@teamterraform teamterraform force-pushed the backport/chrisarcand/remote-backend-no-workspaces-regression/firmly-beloved-joey branch from fbab62b to b372ebb Compare December 14, 2021 15:59
@chrisarcand chrisarcand merged commit fc1fd1b into v1.1 Dec 14, 2021
@chrisarcand chrisarcand deleted the backport/chrisarcand/remote-backend-no-workspaces-regression/firmly-beloved-joey branch December 14, 2021 16:20
@github-actions
Copy link
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 Jan 14, 2022
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.

2 participants