Skip to content

Commit

Permalink
Add the file extension in unit diagnostics again. (#2270)
Browse files Browse the repository at this point in the history
Re-apply the changes from
#2047 again since they
somehow got lost on main again.

(cherry picked from commit 3bb605d)
  • Loading branch information
cmacknz authored and mergify[bot] committed Feb 14, 2023
1 parent 60a5156 commit a22bce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/pkg/diagnostics/diagnostics.go
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ func ZipArchive(errOut, w io.Writer, agentDiag []client.DiagnosticFileResult, un
continue
}
for _, fr := range ud.Results {
filePath := fmt.Sprintf("components/%s/%s/%s", dirName, unitDir, fr.Name)
filePath := fmt.Sprintf("components/%s/%s/%s", dirName, unitDir, fr.Filename)
w, err := zw.CreateHeader(&zip.FileHeader{
Name: filePath,
Method: zip.Deflate,
Expand Down

0 comments on commit a22bce8

Please sign in to comment.