Merge pull request #29162 from xiangpengzhao/fix_err_to_cerr

Automatic merge from submit-queue

Fix wrong variable of error

Should not log `err` but `cerr`.
This commit is contained in:
k8s-merge-robot 2016-07-20 11:11:33 -07:00 committed by GitHub
commit 6df62ff39c

View File

@ -1332,7 +1332,7 @@ func (dm *DockerManager) KillContainerInPod(containerID kubecontainer.ContainerI
}
storedPod, storedContainer, cerr := containerAndPodFromLabels(inspect)
if cerr != nil {
glog.Errorf("unable to access pod data from container: %v", err)
glog.Errorf("unable to access pod data from container: %v", cerr)
}
if container == nil {
container = storedContainer