Skip to content

Commit

Permalink
Upgrade terraform to 0.15.5
Browse files Browse the repository at this point in the history
  • Loading branch information
stoyanr committed Nov 5, 2021
1 parent 45dd48f commit 0841f42
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion build/alicloud/TF_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.11
0.15.5
2 changes: 1 addition & 1 deletion build/all/TF_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.11
0.15.5
2 changes: 1 addition & 1 deletion build/aws/TF_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.11
0.15.5
2 changes: 1 addition & 1 deletion build/azure/TF_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.11
0.15.5
2 changes: 1 addition & 1 deletion build/equinixmetal/TF_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.11
0.15.5
2 changes: 1 addition & 1 deletion build/gcp/TF_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.11
0.15.5
2 changes: 1 addition & 1 deletion build/openstack/TF_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.11
0.15.5
2 changes: 1 addition & 1 deletion build/slim/TF_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.11
0.15.5
5 changes: 2 additions & 3 deletions pkg/terraformer/terraformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ func (t *Terraformer) executeTerraform(ctx context.Context, command Command, par
if command == StateReplaceProvider {
args = append(args, strings.Split(string(command), " ")...)
} else {
args = append(args, "-chdir="+t.paths.ConfigDir)
args = append(args, string(command))
}

Expand All @@ -258,11 +259,9 @@ func (t *Terraformer) executeTerraform(ctx context.Context, command Command, par

if command == StateReplaceProvider {
args = append(args, params...)
} else {
args = append(args, t.paths.ConfigDir)
}

log.Info("executing terraform", "command", command, "args", strings.Join(args[1:], " "))
log.Info("executing terraform", "command", command, "args", strings.Join(args, " "))
tfCmd := exec.Command(TerraformBinary, args...)

logBuffer := &bytes.Buffer{}
Expand Down
2 changes: 1 addition & 1 deletion test/utils/objects.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func PrepareTestObjects(ctx context.Context, c client.Client, namespacePrefix st
o.StateConfigMap = &corev1.ConfigMap{
ObjectMeta: metav1.ObjectMeta{Name: "tf-state", Namespace: o.Namespace},
Data: map[string]string{
StateKey: `{"terraform_version":"0.14.11"}`,
StateKey: `{"terraform_version":"0.15.5"}`,
},
}
err = o.client.Create(ctx, o.StateConfigMap)
Expand Down

0 comments on commit 0841f42

Please sign in to comment.