From 5595fad5355c77e185eb1a56c997fd5d639aebbe Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Thu, 20 Apr 2017 12:55:49 +0200 Subject: [PATCH] server: do not compare pointers Signed-off-by: Antonio Murdaca --- server/sandbox_remove.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sandbox_remove.go b/server/sandbox_remove.go index 19165250..03011454 100644 --- a/server/sandbox_remove.go +++ b/server/sandbox_remove.go @@ -49,7 +49,7 @@ func (s *Server) RemovePodSandbox(ctx context.Context, req *pb.RemovePodSandboxR return nil, fmt.Errorf("failed to delete container %s in pod sandbox %s: %v", c.Name(), sb.id, err) } - if c == podInfraContainer { + if c.ID() == podInfraContainer.ID() { continue }