d
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user