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

backend/remote: Fix version check when migrating #29793

Merged
merged 1 commit into from
Oct 25, 2021

Commits on Oct 21, 2021

  1. backend/remote: Fix version check when migrating

    When migrating state to an existing Terraform Cloud workspace using the
    remote backend, we check the remote version is compatible with the local
    one by default.
    
    This commit fixes two bugs in this code:
    
    - If using the "name" strategy for the remote backend, the list of
      destination workspaces is empty. This resulted in no version checking
      of the remote workspace, and we fell back to the string equality
      check.
    - The user-specified CLI flag `-ignore-remote-version` was not being
      applied for the state migration version checking.
    alisdair committed Oct 21, 2021
    Configuration menu
    Copy the full SHA
    1729431 View commit details
    Browse the repository at this point in the history