Move Sandbox state into libkpod

Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
Matthew Heon 2017-07-25 11:12:53 -04:00
parent 8fd089c570
commit ece055327a
5 changed files with 78 additions and 44 deletions

View file

@ -32,7 +32,7 @@ func (s *Server) ListPodSandbox(ctx context.Context, req *pb.ListPodSandboxReque
logrus.Debugf("ListPodSandboxRequest %+v", req)
var pods []*pb.PodSandbox
var podList []*sandbox.Sandbox
for _, sb := range s.state.sandboxes {
for _, sb := range s.ContainerServer.ListSandboxes() {
podList = append(podList, sb)
}