Attempt to set current Terraform version on new workspaces, always
This commit is contained in:
parent
aba7d96596
commit
ee384e8716
|
@ -649,11 +649,7 @@ func (b *Cloud) StateMgr(name string) (statemgr.Full, error) {
|
||||||
}
|
}
|
||||||
options.Tags = tags
|
options.Tags = tags
|
||||||
|
|
||||||
// We only set the Terraform Version for the new workspace if this is
|
options.TerraformVersion = tfe.String(tfversion.String())
|
||||||
// a release candidate or a final release.
|
|
||||||
if tfversion.Prerelease == "" || strings.HasPrefix(tfversion.Prerelease, "rc") {
|
|
||||||
options.TerraformVersion = tfe.String(tfversion.String())
|
|
||||||
}
|
|
||||||
|
|
||||||
workspace, err = b.client.Workspaces.Create(context.Background(), b.organization, options)
|
workspace, err = b.client.Workspaces.Create(context.Background(), b.organization, options)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue