Skip to content

Commit 30fb4e2

Browse files
committed
Fix run collector text analyze file path mismatch
1 parent 24096b0 commit 30fb4e2

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/collect/run.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,10 @@ func Run(c *Collector, runCollector *troubleshootv1beta2.Run) (CollectorResult,
3232
}
3333

3434
runPodCollector := &troubleshootv1beta2.RunPod{
35-
Name: runCollector.CollectorName,
35+
CollectorMeta: troubleshootv1beta2.CollectorMeta{
36+
CollectorName: runCollector.CollectorName,
37+
},
38+
Name: runCollector.Name,
3639
Namespace: namespace,
3740
Timeout: runCollector.Timeout,
3841
ImagePullSecret: runCollector.ImagePullSecret,
@@ -189,9 +192,6 @@ func runWithoutTimeout(ctx context.Context, c *Collector, pod *corev1.Pod, runPo
189192
output := NewResult()
190193

191194
collectorName := runPodCollector.Name
192-
if collectorName == "" {
193-
collectorName = runPodCollector.CollectorName
194-
}
195195

196196
limits := troubleshootv1beta2.LogLimits{
197197
MaxLines: 10000,
File renamed without changes.

0 commit comments

Comments
 (0)