Simplify filter block
Signed-off-by: Yann Ramin <atrus@stackworks.net>
This commit is contained in:
parent
50c94a9335
commit
a2fc41358a
2 changed files with 10 additions and 24 deletions
|
@ -28,10 +28,7 @@ func (s *Server) ListContainerStats(ctx context.Context, req *pb.ListContainerSt
|
|||
PodSandboxId: req.Filter.PodSandboxId,
|
||||
LabelSelector: req.Filter.LabelSelector,
|
||||
}
|
||||
ctrList, err = s.filterContainerList(cFilter, ctrList)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
ctrList = s.filterContainerList(cFilter, ctrList)
|
||||
}
|
||||
|
||||
var allStats []*pb.ContainerStats
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue