This commit is contained in:
2023-09-18 15:56:53 +08:00
parent fa587e8f4a
commit 98fcdff349
3 changed files with 375 additions and 8 deletions

View File

@@ -189,7 +189,7 @@ func UploadSoftwareFile(w http.ResponseWriter, r *http.Request) {
}
func UploadSoftwareMultiFile(w http.ResponseWriter, r *http.Request) {
log.Debug("UploadSoftwareFile processing... ")
log.Info("UploadSoftwareMultiFile processing... ")
_, err := services.CheckFrontValidRequest(w, r)
if err != nil {
@@ -674,7 +674,7 @@ func ActiveSoftwareToNF(w http.ResponseWriter, r *http.Request) {
if !config.GetYamlConfig().OMC.TestMode {
filePath := (*neVersion)[0]["file_path"]
sshHost := fmt.Sprintf("%s@%s", config.GetYamlConfig().NE.User, neInfo.Ip)
fileType, err := global.JudgeRpmOrDebPackage(filePath)
fileType, err := global.IsRpmOrDebPackage(filePath)
if err != nil {
log.Error("Failed to JudgeRpmOrDebPackage:", err)
services.ResponseInternalServerError500ProcessError(w, err)