diff --git a/features/cm/software.go b/features/cm/software.go index 2a015378..a1a3046c 100644 --- a/features/cm/software.go +++ b/features/cm/software.go @@ -130,7 +130,7 @@ func UploadSoftwareFile(w http.ResponseWriter, r *http.Request) { log.Debugf("cmsFilePath:%s rpmFilePath:%s publicKey:%s", rpmFilePath, cmsFilePath, config.GetYamlConfig().Auth.PublicKey) result := verify_signature(config.GetYamlConfig().Auth.PublicKey, cmsFilePath, rpmFilePath) log.Debug("result:", result.String()) - if result.String() != SoftwareVerifiedOk { + if strings.Contains(result.String(), SoftwareVerifiedOk) == true { err = global.ErrCMNotMatchSignFile log.Error(err) services.ResponseInternalServerError500ProcessError(w, err)