Fix wrong error variable

This commit is contained in:
xiangpengzhao 2016-07-18 22:38:20 -04:00
parent af0835c0f4
commit 2d7dbc2271

View File

@ -1331,7 +1331,7 @@ func (dm *DockerManager) KillContainerInPod(containerID kubecontainer.ContainerI
} }
storedPod, storedContainer, cerr := containerAndPodFromLabels(inspect) storedPod, storedContainer, cerr := containerAndPodFromLabels(inspect)
if cerr != nil { 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 { if container == nil {
container = storedContainer container = storedContainer