mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-26 21:17:23 +00:00
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:
commit
6df62ff39c
@ -1332,7 +1332,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
|
||||||
|
Loading…
Reference in New Issue
Block a user