Skip to content

Commit

Permalink
Merge pull request #174 from xrstf/fix-output-file
Browse files Browse the repository at this point in the history
prevent broken junit report files
  • Loading branch information
k8s-ci-robot committed Apr 4, 2024
2 parents a1e1ddf + e3e7985 commit afcfbcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (c *Client) fetchFile(ctx context.Context, config *rest.Config, clientset *
dest := filepath.Join(outputDir, filename)
log.Printf("Downloading %s to %s...", filename, dest)

localFile, err := os.OpenFile(dest, os.O_WRONLY|os.O_CREATE, 0600)
localFile, err := os.Create(dest)
if err != nil {
return err
}
Expand Down

0 comments on commit afcfbcb

Please sign in to comment.