Skip to content

Commit

Permalink
Merge pull request #311 from jumppad-labs/erik/fix-tf-version
Browse files Browse the repository at this point in the history
Set default tf version to latest 1.9.8
  • Loading branch information
nicholasjackson authored Nov 18, 2024
2 parents 8abe93e + a786d8a commit 7cf9b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/config/resources/terraform/provider_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func TestCreatesTerraformContainerWithTheCorrectValues(t *testing.T) {
ID: "Abc123",
},
},
Version: "1.16.2",
Version: "1.9.8",
Source: "../../../../examples/terraform/workspace",
}

Expand All @@ -87,7 +87,7 @@ func TestCreatesTerraformContainerWithTheCorrectValues(t *testing.T) {
require.Equal(t, c.Environment["TF_PLUGIN_CACHE_DIR"], "/var/lib/terraform.d")

// check the correct image is used
require.Equal(t, c.Image.Name, "hashicorp/terraform:1.16.2")
require.Equal(t, c.Image.Name, "hashicorp/terraform:1.9.8")

// check the networks have been added
require.Equal(t, c.Networks[0].ID, "Abc123")
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/resources/terraform/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func (t *Terraform) Process() error {

// set the base version
if t.Version == "" {
t.Version = "1.16.2"
t.Version = "1.9.8"
}

// restore the applyoutput from the state
Expand Down

0 comments on commit 7cf9b74

Please sign in to comment.