server: *_status: do not fail on updating containers status
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
ea98e2a295
commit
03da0fe03e
2 changed files with 4 additions and 6 deletions
|
@ -18,9 +18,8 @@ func (s *Server) ContainerStatus(ctx context.Context, req *pb.ContainerStatusReq
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
if err = s.runtime.UpdateStatus(c); err != nil {
|
// best effort if container is still in runc store...
|
||||||
return nil, err
|
s.runtime.UpdateStatus(c)
|
||||||
}
|
|
||||||
|
|
||||||
containerID := c.ID()
|
containerID := c.ID()
|
||||||
image := c.Image()
|
image := c.Image()
|
||||||
|
|
|
@ -16,9 +16,8 @@ func (s *Server) PodSandboxStatus(ctx context.Context, req *pb.PodSandboxStatusR
|
||||||
}
|
}
|
||||||
|
|
||||||
podInfraContainer := sb.infraContainer
|
podInfraContainer := sb.infraContainer
|
||||||
if err = s.runtime.UpdateStatus(podInfraContainer); err != nil {
|
// best effort if container is still in runc store...
|
||||||
return nil, err
|
s.runtime.UpdateStatus(podInfraContainer)
|
||||||
}
|
|
||||||
|
|
||||||
cState := s.runtime.ContainerStatus(podInfraContainer)
|
cState := s.runtime.ContainerStatus(podInfraContainer)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue