Skip to content

Commit

Permalink
fix: log containerID after assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Rudoi committed May 13, 2019
1 parent b5470a6 commit 821467c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/k8sapi/discovery.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,8 @@ func (d *Controller) handlePodUpdate(key string) error {
var containerID string

if len(pod.Status.ContainerStatuses) > 0 {
log.Debugf("Found pod (%v)'s container ID: %v", podName, containerID)
containerID = pod.Status.ContainerStatuses[0].ContainerID
log.Debugf("Found pod (%v)'s container ID: %v", podName, containerID)
}

d.workerPods[key] = &K8SPodInfo{
Expand Down

0 comments on commit 821467c

Please sign in to comment.