Skip to content

Commit

Permalink
fix: add event arg and validate pgrep (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Italo Santos authored Feb 25, 2021
1 parent 4e1c4d5 commit 7b799d0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cli/cmd/kubernetes/job/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ func (p *pythonCreator) create(targetPod *apiv1.Pod, cfg *data.FlameConfig) (str
cfg.TargetConfig.ContainerId,
cfg.TargetConfig.Duration.String(),
string(cfg.TargetConfig.Language),
cfg.TargetConfig.Pgrep,
string(cfg.TargetConfig.Event),
}

if cfg.TargetConfig.Pgrep != "" {
args = append(args, cfg.TargetConfig.Pgrep)
}

if cfg.TargetConfig.Image != "" {
Expand Down

0 comments on commit 7b799d0

Please sign in to comment.