Commit 2d7dbc22 authored by xiangpengzhao's avatar xiangpengzhao

Fix wrong error variable

parent af0835c0
...@@ -1331,7 +1331,7 @@ func (dm *DockerManager) KillContainerInPod(containerID kubecontainer.ContainerI ...@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment