Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6377f17

Browse files
authored
chore: update terraform to 1.2.1 (#3243)
* chore: update terraform to 1.2.1 * allow terraform version equal to max
1 parent d27076c commit 6377f17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

provisioner/terraform/serve.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ import (
1616

1717
// This is the exact version of Terraform used internally
1818
// when Terraform is missing on the system.
19-
var terraformVersion = version.Must(version.NewVersion("1.1.9"))
19+
var terraformVersion = version.Must(version.NewVersion("1.2.1"))
2020
var minTerraformVersion = version.Must(version.NewVersion("1.1.0"))
21-
var maxTerraformVersion = version.Must(version.NewVersion("1.2.0"))
21+
var maxTerraformVersion = version.Must(version.NewVersion("1.2.1"))
2222

2323
var (
2424
// The minimum version of Terraform supported by the provisioner.
@@ -67,7 +67,7 @@ func absoluteBinaryPath(ctx context.Context) (string, error) {
6767
return "", xerrors.Errorf("Terraform binary get version failed: %w", err)
6868
}
6969

70-
if version.LessThan(minTerraformVersion) || version.GreaterThanOrEqual(maxTerraformVersion) {
70+
if version.LessThan(minTerraformVersion) || version.GreaterThan(maxTerraformVersion) {
7171
return "", terraformMinorVersionMismatch
7272
}
7373

0 commit comments

Comments
 (0)