[Agent][Operator] - bug fix
This commit is contained in:
@@ -156,6 +156,18 @@ func DownloadCompressUpload(fullNameList []string, shouldGzip bool, gzipFolderFu
|
||||
fullNameList = slices.DeleteFunc(fullNameList, func(imageName string) bool {
|
||||
return slices.Contains(errorGzipImageList, imageName)
|
||||
})
|
||||
|
||||
// write to file
|
||||
targetFile := gzipFolderFullPath + string(os.PathSeparator) + "all-gzip-image-file-name.txt"
|
||||
|
||||
for _, gzipFileFullName := range allGzipFileNameList {
|
||||
utils.AppendContentToFile(
|
||||
strings.TrimPrefix(gzipFileFullName, gzipFolderFullPath),
|
||||
targetFile,
|
||||
)
|
||||
}
|
||||
|
||||
log.InfoF("all gzip file name list is %s", targetFile)
|
||||
}
|
||||
|
||||
// Upload
|
||||
|
||||
Reference in New Issue
Block a user