Only use IDs for execution RPC requests

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2016-12-09 11:32:45 -08:00
parent cc720bc460
commit 2bee4ac5cd
4 changed files with 232 additions and 304 deletions

View file

@ -46,7 +46,7 @@ var execCommand = cli.Command{
defer os.RemoveAll(tmpDir)
sOpts := &execution.StartProcessRequest{
ContainerId: id,
ContainerID: id,
Process: &execution.Process{
Cwd: context.String("cwd"),
Terminal: context.Bool("tty"),
@ -70,10 +70,8 @@ var execCommand = cli.Command{
}
_, err = executionService.DeleteProcess(gocontext.Background(), &execution.DeleteProcessRequest{
Container: &execution.Container{
ID: id,
},
Process: sr.Process,
ContainerID: id,
ProcessID: sr.Process.ID,
})
if err != nil {
return err