Skip to content

Commit

Permalink
Pass the context to Podman exec command too
Browse files Browse the repository at this point in the history
  • Loading branch information
rm3l committed Apr 13, 2023
1 parent c0cc896 commit cf385f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/podman/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (o *PodmanCli) ExecCMDInContainer(ctx context.Context, containerName, podNa
args = append(args, name)
args = append(args, cmd...)

command := exec.Command(o.podmanCmd, args...)
command := exec.CommandContext(ctx, o.podmanCmd, args...)
klog.V(3).Infof("executing %v", command.Args)
command.Stdin = stdin

Expand Down

0 comments on commit cf385f1

Please sign in to comment.