Skip to content

Commit

Permalink
fix: panic on empty bool env (#5018)
Browse files Browse the repository at this point in the history
* fix: panic on empty bool env

* fix: test
  • Loading branch information
exu authored Feb 28, 2024
1 parent 36ef09c commit 7f2c566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/executor/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const (
var RunnerEnvVars = []corev1.EnvVar{
{
Name: "DEBUG",
Value: os.Getenv("DEBUG"),
Value: getOr("DEBUG", "false"),
},
{
Name: "RUNNER_ENDPOINT",
Expand Down
2 changes: 1 addition & 1 deletion pkg/executor/containerexecutor/containerexecutor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ func TestNewExecutorJobSpecWithArgs(t *testing.T) {
assert.NotNil(t, spec)

wantEnvs := []corev1.EnvVar{
{Name: "DEBUG", Value: ""},
{Name: "DEBUG", Value: "false"},
{Name: "RUNNER_ENDPOINT", Value: ""},
{Name: "RUNNER_ACCESSKEYID", Value: ""},
{Name: "RUNNER_SECRETACCESSKEY", Value: ""},
Expand Down

0 comments on commit 7f2c566

Please sign in to comment.