Prepend helm to command

This commit is contained in:
stefanprodan
2019-06-04 14:00:00 +03:00
parent 181d50b7b6
commit 2bc8194d96

View File

@@ -19,7 +19,7 @@ func (task *HelmTask) Hash() string {
}
func (task *HelmTask) Run(ctx context.Context) (bool, error) {
cmd := exec.CommandContext(ctx, "bash", "-c", task.command)
cmd := exec.CommandContext(ctx, "bash", "-c", "helm "+task.command)
out, err := cmd.CombinedOutput()
if err != nil {
@@ -29,7 +29,7 @@ func (task *HelmTask) Run(ctx context.Context) (bool, error) {
if task.logCmdOutput {
fmt.Printf("%s\n", out)
}
task.logger.With("canary", task.canary).Infof("command finished %s", task.command)
task.logger.With("canary", task.canary).Infof("command finished %v", cmd.Args)
}
return true, nil
}