server/server: skip f no sandbox when restoring containers

Signed-off-by: Antonio Murdaca <runcom@redhat.com>
This commit is contained in:
Antonio Murdaca 2016-10-12 00:36:34 +02:00
parent 472893cfbe
commit be2b0cfa50
No known key found for this signature in database
GPG key ID: B2BEAD150DE936B9

View file

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