Skip to content

Commit e18248d

Browse files
authored
fix(harness): use TF_CLI_ARGS to correctly pass tf args (#445)
1 parent dde576e commit e18248d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/harness/stackrun/v1/types.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,16 @@ func (in *StackRun) Env() []string {
8787
env = append(env, fmt.Sprintf("PLURAL_CONSOLE_URL=%s", lo.FromPtr(in.Creds.URL)))
8888
}
8989

90-
var tfArgs []string
90+
tfArgs := "TF_CLI_ARGS="
9191
if in.Parallelism != nil {
92-
tfArgs = append(tfArgs, fmt.Sprintf("-parallelism=%d", *in.Parallelism))
92+
tfArgs += fmt.Sprintf("-parallelism=%d ", *in.Parallelism)
9393
}
9494

9595
if in.Refresh != nil {
96-
tfArgs = append(tfArgs, fmt.Sprintf("-refresh=%t", *in.Refresh))
96+
tfArgs += fmt.Sprintf("-refresh=%t", *in.Refresh)
9797
}
9898

99-
return append(env, tfArgs...)
99+
return append(env, tfArgs)
100100
}
101101

102102
// Vars parses the StackRun.Variables map as a valid JSON.

0 commit comments

Comments
 (0)