Skip to content

Commit

Permalink
use correct filepath with collector name and .log suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
nvanthao committed Feb 8, 2024
1 parent 99f9e7c commit e1802a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/collect/run_daemonset.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ func (c *CollectRunDaemonSet) Collect(progressChan chan<- interface{}) (Collecto

output := NewResult()
for k, v := range results {
err := output.SaveResult(c.BundlePath, filepath.Join("run-daemonset", k), bytes.NewBuffer(v))
filename := k + ".log"
err := output.SaveResult(c.BundlePath, filepath.Join(c.Collector.Name, filename), bytes.NewBuffer(v))
if err != nil {
return nil, err
}
Expand Down

0 comments on commit e1802a9

Please sign in to comment.