Specifying a filter with no filtering expressions is now idempotent

Signed-off-by: Yann Ramin <atrus@stackworks.net>
This commit is contained in:
Yann Ramin 2018-01-31 10:28:01 -08:00
parent 14c1c70407
commit 50c94a9335
2 changed files with 5 additions and 3 deletions

View file

@ -28,7 +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, err = s.filterContainerList(cFilter, ctrList)
if err != nil {
return nil, err
}