server: do not compare pointers

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2017-04-20 12:55:49 +02:00
parent f18e032714
commit 5595fad535
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

@ -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
}