!39 [sync] PR-38: fix issue: cve fix result doesn't match log

From: @openeuler-sync-bot 
Reviewed-by: @zhu-yuncheng 
Signed-off-by: @zhu-yuncheng
This commit is contained in:
openeuler-ci-bot 2023-06-09 09:55:03 +00:00 committed by Gitee
commit a114ca5973
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From 0aad5ad09a5860bb43a9a64337cefe5813424288 Mon Sep 17 00:00:00 2001
From: rabbitali <shusheng.wen@outlook.com>
Date: Fri, 9 Jun 2023 15:42:42 +0800
Subject: [PATCH] fix issue: cve fix result doesn't match log
---
ceres/manages/vulnerability_manage.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ceres/manages/vulnerability_manage.py b/ceres/manages/vulnerability_manage.py
index a395620..c153190 100644
--- a/ceres/manages/vulnerability_manage.py
+++ b/ceres/manages/vulnerability_manage.py
@@ -298,7 +298,7 @@ class VulnerabilityManage:
syscare_res = self._syscare_change_status(hot_pkg, cve.get('accepted'))
if not syscare_res:
return False, res
- return "Active/Accept hot patch succeed" in res or "No hot patches marked for install" in res, res
+ return "Apply hot patch succeed" in res or "No hot patches marked for install" in res, res
else:
return "Complete" in res, res
--

View File

@ -1,12 +1,13 @@
Name: aops-ceres
Version: v1.2.1
Release: 3
Release: 4
Summary: An agent which needs to be adopted in client, it managers some plugins, such as gala-gopher(kpi collection), fluentd(log collection) and so on.
License: MulanPSL2
URL: https://gitee.com/openeuler/%{name}
Source0: %{name}-%{version}.tar.gz
Patch0001: 0001-modify-return-value-when-no-hotpatch-is-matched.patch
Patch0002: 0002-update-cve-fix-and-cve-scan.patch
Patch0003: 0003-fix-issue-cve-fix-result-doesn-t-match-log.patch
BuildRequires: python3-setuptools
@ -42,6 +43,9 @@ An agent which needs to be adopted in client, it managers some plugins, such as
%changelog
* Fri Jun 09 2023 wenxin<shusheng.wen@outlook.com> - v1.2.1-4
- fix issue: cve fix result doesn't match log
* Fri Jun 02 2023 wenxin<shusheng.wen@outlook.com> - v1.2.1-3
- update cve scan and cve fix