summaryrefslogtreecommitdiff
path: root/0001-modify-return-value-when-no-hotpatch-is-matched.patch
blob: 99bfd7f1b0798e523242d3c61c4580680f551257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From a159ed3c419415e8822a6a2867654dbea01c49e4 Mon Sep 17 00:00:00 2001
From: rabbitali <shusheng.wen@outlook.com>
Date: Wed, 31 May 2023 15:40:03 +0800
Subject: [PATCH] modify the return result when no hot patch is matched
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 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 5a475e4..4bb42db 100644
--- a/ceres/manages/vulnerability_manage.py
+++ b/ceres/manages/vulnerability_manage.py
@@ -350,7 +350,7 @@ class VulnerabilityManage:
 
         if not hotpatch_list:
             log = "No valid hot patch is matched."
-            return NOT_PATCH, [dict(cve_id=cve["cve_id"], log=log, result="succeed") for cve in cves]
+            return NOT_PATCH, [dict(cve_id=cve["cve_id"], log=log, result="fail") for cve in cves]
 
         cmd_execute_result = []
         for base_pkg, hotpatch_cves in hotpatch_list.items():
--