Attempt to set current Terraform version on new workspaces, always

This commit is contained in:
Chris Arcand 2021-09-29 12:41:44 -05:00
parent aba7d96596
commit ee384e8716
1 changed files with 1 additions and 5 deletions

View File

@ -649,11 +649,7 @@ func (b *Cloud) StateMgr(name string) (statemgr.Full, error) {
}
options.Tags = tags
// We only set the Terraform Version for the new workspace if this is
// a release candidate or a final release.
if tfversion.Prerelease == "" || strings.HasPrefix(tfversion.Prerelease, "rc") {
options.TerraformVersion = tfe.String(tfversion.String())
}
options.TerraformVersion = tfe.String(tfversion.String())
workspace, err = b.client.Workspaces.Create(context.Background(), b.organization, options)
if err != nil {