Move Sandbox state into libkpod
Signed-off-by: Matthew Heon <mheon@redhat.com>
This commit is contained in:
parent
8fd089c570
commit
ece055327a
5 changed files with 78 additions and 44 deletions
|
@ -120,7 +120,7 @@ func (s *Server) StopPodSandbox(ctx context.Context, req *pb.StopPodSandboxReque
|
|||
// StopAllPodSandboxes removes all pod sandboxes
|
||||
func (s *Server) StopAllPodSandboxes() {
|
||||
logrus.Debugf("StopAllPodSandboxes")
|
||||
for _, sb := range s.state.sandboxes {
|
||||
for _, sb := range s.ContainerServer.ListSandboxes() {
|
||||
pod := &pb.StopPodSandboxRequest{
|
||||
PodSandboxId: sb.ID(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue