Skip to content

Commit

Permalink
fix: ignore empty value
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Sukhin <[email protected]>
  • Loading branch information
vsukhin committed Nov 5, 2024
1 parent a0cf2a5 commit 4968f33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cmd/kubectl-testkube/commands/common/helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,10 @@ func appendHelmArgs(args []string, options HelmOptions, settings map[string]stri
}

for key, value := range options.ArgOptions {
args = append(args, fmt.Sprintf("--%s %s", key, value))
args = append(args, fmt.Sprintf("--%s", key))
if value != "" {
args = append(args, value)
}
}

return args
Expand Down

0 comments on commit 4968f33

Please sign in to comment.