Ensure perf results file has an extension (#4551)

This commit is contained in:
Shireesh Anjal
2023-04-25 11:41:52 -07:00
committed by GitHub
parent 7130c92043
commit 36e26c448f
+2 -2
View File
@@ -483,8 +483,8 @@ func writeJSONObjToZip(zipWriter *zip.Writer, obj interface{}, filename string)
// compress MinIO performance output
func zipPerfResult(perfOutput PerfTestOutput, resultFilename string, regInfo ClusterRegistrationInfo) (string, error) {
// Create profile zip file
tmpArchive, e := os.CreateTemp("", "mc-perf-")
// Create perf results zip file
tmpArchive, e := os.CreateTemp("", "mc-perf-*.zip")
if e != nil {
return "", e