Merge pull request #126 from runcom/skip-sb-nil
server/server: skip f no sandbox when restoring containers
This commit is contained in:
commit
1f11bb7ab7
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"])
|
sb := s.getSandbox(m.Annotations["ocid/sandbox_id"])
|
||||||
if sb == nil {
|
if sb == nil {
|
||||||
logrus.Warnf("could not get sandbox with id %s, skipping", m.Annotations["ocid/sandbox_id"])
|
logrus.Warnf("could not get sandbox with id %s, skipping", m.Annotations["ocid/sandbox_id"])
|
||||||
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
var tty bool
|
var tty bool
|
||||||
|
|
Loading…
Reference in a new issue