diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-11 03:52:13 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-11 03:52:13 +0000 |
commit | fdbbe20926aba520a920d064c6f23a296a660f23 (patch) | |
tree | 70dcbbfa36e220318515305d6451014818a174aa /0001-modify-return-value-when-no-hotpatch-is-matched.patch | |
parent | 2ea33a406205b40503a491d8a1b4f0d634c8b45b (diff) |
automatic import of aops-ceresopeneuler23.03
Diffstat (limited to '0001-modify-return-value-when-no-hotpatch-is-matched.patch')
-rw-r--r-- | 0001-modify-return-value-when-no-hotpatch-is-matched.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/0001-modify-return-value-when-no-hotpatch-is-matched.patch b/0001-modify-return-value-when-no-hotpatch-is-matched.patch new file mode 100644 index 0000000..99bfd7f --- /dev/null +++ b/0001-modify-return-value-when-no-hotpatch-is-matched.patch @@ -0,0 +1,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(): +-- + |