Merge pull request #27498 from hashicorp/alisdair/fix-remote-terraform-version-check-again
cli: Fix double check of remote workspace version
This commit is contained in:
commit
a15c5c84a3
|
@ -1116,6 +1116,11 @@ func (m *Meta) remoteBackendVersionCheck(b backend.Backend, workspace string) tf
|
|||
// an error
|
||||
versionDiags := rb.VerifyWorkspaceTerraformVersion(workspace)
|
||||
diags = diags.Append(versionDiags)
|
||||
// If there are no errors resulting from this check, we do not need to
|
||||
// check again
|
||||
if !diags.HasErrors() {
|
||||
rb.IgnoreVersionConflict()
|
||||
}
|
||||
}
|
||||
|
||||
return diags
|
||||
|
|
Loading…
Reference in New Issue