diff --git a/internal/pkg/diagnostics/diagnostics.go b/internal/pkg/diagnostics/diagnostics.go index 01103f9a1fd..985a860e24e 100644 --- a/internal/pkg/diagnostics/diagnostics.go +++ b/internal/pkg/diagnostics/diagnostics.go @@ -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,