mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
dockershim: bug fixes and more unit tests
Fixing the name triming and other small bugs. Added sandbox listing unit tests.
This commit is contained in:
@@ -62,7 +62,8 @@ func (ds *dockerService) ListContainers(filter *runtimeApi.ContainerFilter) ([]*
|
||||
}
|
||||
// Convert docker to runtime api containers.
|
||||
result := []*runtimeApi.Container{}
|
||||
for _, c := range containers {
|
||||
for i := range containers {
|
||||
c := containers[i]
|
||||
if len(filter.GetName()) > 0 {
|
||||
_, _, _, containerName, _, err := parseContainerName(c.Names[0])
|
||||
if err != nil || containerName != filter.GetName() {
|
||||
|
||||
Reference in New Issue
Block a user