RemovePodSandbox must be idempotent
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
4bb7a7cc5d
commit
53945dea08
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ func (s *Server) RemovePodSandbox(ctx context.Context, req *pb.RemovePodSandboxR
|
|||
if err := s.storageRuntimeServer.StopContainer(sb.id); err != nil {
|
||||
logrus.Warnf("failed to stop sandbox container in pod sandbox %s: %v", sb.id, err)
|
||||
}
|
||||
if err := s.storageRuntimeServer.RemovePodSandbox(sb.id); err != nil {
|
||||
if err := s.storageRuntimeServer.RemovePodSandbox(sb.id); err != nil && err != storage.ErrInvalidSandboxID {
|
||||
return nil, fmt.Errorf("failed to remove pod sandbox %s: %v", sb.id, err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue