server/server: skip f no sandbox when restoring containers
Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
parent
472893cfbe
commit
be2b0cfa50
1 changed files with 1 additions and 0 deletions
|
@ -59,6 +59,7 @@ func (s *Server) loadContainer(id string) error {
|
|||
sb := s.getSandbox(m.Annotations["ocid/sandbox_id"])
|
||||
if sb == nil {
|
||||
logrus.Warnf("could not get sandbox with id %s, skipping", m.Annotations["ocid/sandbox_id"])
|
||||
return nil
|
||||
}
|
||||
|
||||
var tty bool
|
||||
|
|
Loading…
Reference in a new issue