Skip to content

Commit b14260a

Browse files
handle nil config val
1 parent f27b4bd commit b14260a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tools/testing/cmd/loadtest/main.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,9 @@ func loadConfigNames(ctx context.Context, samplePath string) ([]string, error) {
444444
for _, service := range project.Services {
445445
for key, val := range service.Environment {
446446
// if the val is empty add the key to the list
447-
if *val == "" {
447+
if val == nil {
448+
configNames = append(configNames, key)
449+
} else if *val == "" {
448450
configNames = append(configNames, key)
449451
}
450452
}

0 commit comments

Comments
 (0)