Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
shimv2: fix the issue of passing the wrong container id
Browse files Browse the repository at this point in the history
It should pass the container id instead of sandbox id.

Fixes:#1672

Signed-off-by: lifupan <[email protected]>
(cherry picked from commit 5e1f5ca)
Signed-off-by: Ganesh Maharaj Mahalingam <[email protected]>
  • Loading branch information
lifupan authored and Ganesh Maharaj Mahalingam committed Jun 4, 2019
1 parent ad4b07d commit a98871e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion containerd-shim-v2/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ func (s *service) Delete(ctx context.Context, r *taskAPI.DeleteRequest) (_ *task
}

s.send(&eventstypes.TaskDelete{
ContainerID: s.id,
ContainerID: c.id,
Pid: s.pid,
ExitStatus: c.exit,
ExitedAt: c.exitTime,
Expand Down

0 comments on commit a98871e

Please sign in to comment.