From be2b0cfa50b9e8448c07a086d88463d030b13256 Mon Sep 17 00:00:00 2001 From: Antonio Murdaca Date: Wed, 12 Oct 2016 00:36:34 +0200 Subject: [PATCH] server/server: skip f no sandbox when restoring containers Signed-off-by: Antonio Murdaca --- server/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/server.go b/server/server.go index 9433d038..28a8b54d 100644 --- a/server/server.go +++ b/server/server.go @@ -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