Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #18 from wzshiming/fix/log
Browse files Browse the repository at this point in the history
Fix log
  • Loading branch information
wzshiming authored Apr 19, 2022
2 parents bd9f792 + 2615a69 commit 63907df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pod_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (c *PodController) LockPods(ctx context.Context, pods <-chan *corev1.Pod) {
}
} else {
if c.logger != nil {
c.logger.Printf("Lock pod %s.%s on %s", pod.Name, pod.Namespace, pod.Spec.NodeName)
c.logger.Printf("Lock pod %s.%s on %s", localPod.Name, localPod.Namespace, localPod.Spec.NodeName)
}
}
})
Expand Down Expand Up @@ -282,7 +282,7 @@ func (c *PodController) ListPods(ctx context.Context, ch chan<- *corev1.Pod, opt
return listPager.EachListItem(ctx, opt, func(obj runtime.Object) error {
pod := obj.(*corev1.Pod)
if c.nodeHasFunc(pod.Spec.NodeName) {
ch <- pod
ch <- pod.DeepCopy()
}
return nil
})
Expand Down

0 comments on commit 63907df

Please sign in to comment.