api/execution: remove ProcessID from rpc calls
Now that the shim handles all container's processes the system pid is sufficient. Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
40b0b211b7
commit
6f9eda1134
9 changed files with 151 additions and 241 deletions
|
@ -29,11 +29,11 @@ var deleteCommand = cli.Command{
|
|||
return fmt.Errorf("container id must be provided")
|
||||
}
|
||||
|
||||
pid := context.String("pid")
|
||||
if pid != "" {
|
||||
pid := uint32(context.Int64("pid"))
|
||||
if pid != 0 {
|
||||
_, err = executionService.DeleteProcess(gocontext.Background(), &execution.DeleteProcessRequest{
|
||||
ContainerID: id,
|
||||
ProcessID: pid,
|
||||
Pid: pid,
|
||||
})
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue