diff --git a/pkg/manager/manager.go b/pkg/manager/manager.go index e413d9c83..f15b1ea2e 100644 --- a/pkg/manager/manager.go +++ b/pkg/manager/manager.go @@ -368,7 +368,7 @@ func (m *SupportBundleManager) getAgentPodsCreatedBy(daemonSet *appsv1.DaemonSet } // Check if all desired Pods have been scheduled - if len(filteredPods) != 0 && len(pods.Items) == int(daemonSet.Status.DesiredNumberScheduled) { + if len(filteredPods) != 0 && len(filteredPods) == int(daemonSet.Status.DesiredNumberScheduled) { return &v1.PodList{Items: filteredPods}, nil }