Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Su <[email protected]>
  • Loading branch information
pingsutw committed Jan 11, 2023
1 parent 9679fb3 commit c2e0080
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions go/tasks/plugins/array/awsbatch/transformer.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,15 +136,14 @@ func getEnvVarsForTask(ctx context.Context, execID pluginCore.TaskExecutionID, c
for key, value := range defaultEnvVars {
m[key] = value
}

m[failOnError] = "true"
finalEnvVars := make([]v1.EnvVar, 0, len(m))
for key, val := range m {
finalEnvVars = append(finalEnvVars, v1.EnvVar{
Name: key,
Value: val,
})
}
finalEnvVars = append(finalEnvVars, v1.EnvVar{Name: failOnError, Value: "true"})
return finalEnvVars
}

Expand Down

0 comments on commit c2e0080

Please sign in to comment.