Skip to content

Commit

Permalink
Fix crash (loop?) in kubelet
Browse files Browse the repository at this point in the history
  • Loading branch information
lavalamp committed Nov 21, 2014
1 parent c6158b8 commit 9116c27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/kubelet/dockertools/docker.go
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ func GetRecentDockerContainersWithNameAndUUID(client DockerInterface, podFullNam
return nil, err
}
for _, dockerContainer := range containers {
if len(dockerContainer.Names) == 0 {
continue
}
dockerPodName, dockerUUID, dockerContainerName, _ := ParseDockerName(dockerContainer.Names[0])
if dockerPodName != podFullName {
continue
Expand Down

0 comments on commit 9116c27

Please sign in to comment.