Merge pull request #126 from runcom/skip-sb-nil

server/server: skip f no sandbox when restoring containers
This commit is contained in:
Mrunal Patel 2016-10-11 15:51:15 -07:00 committed by GitHub
commit 1f11bb7ab7

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