diff --git a/0001-update-delete-host.patch b/0001-update-delete-host.patch new file mode 100644 index 0000000000000000000000000000000000000000..e60aa4ac00e1557c193c3777003efc2f8946c557 --- /dev/null +++ b/0001-update-delete-host.patch @@ -0,0 +1,28 @@ +From e6b2a47ac13080a2e4eed63d7e8972c95307d04c Mon Sep 17 00:00:00 2001 +From: wenxin +Date: Mon, 5 Dec 2022 23:35:28 +0800 +Subject: [PATCH] update delete host + +--- + zeus/host_manager/view.py | 5 ++++- + 1 file changed, 4 insertions(+), 1 deletion(-) + +diff --git a/zeus/host_manager/view.py b/zeus/host_manager/view.py +index ecb046c..ed2de8c 100644 +--- a/zeus/host_manager/view.py ++++ b/zeus/host_manager/view.py +@@ -172,7 +172,10 @@ class DeleteHost(BaseResponse): + Returns: + dict: response body + """ +- return jsonify(self.handle_request(DeleteHostSchema, self)) ++ return jsonify(self.handle_request_db(DeleteHostSchema, ++ HostProxy(), ++ 'delete_host', ++ SESSION)) + + + class GetHost(BaseResponse): +-- +2.37.1.windows.1 + diff --git a/aops-zeus.spec b/aops-zeus.spec index 917d44fd35eca46f2e7b4d89e11d85e45d980940..065aeb6aa600167db1cfd23f96d9e22996af7b43 100644 --- a/aops-zeus.spec +++ b/aops-zeus.spec @@ -1,10 +1,11 @@ Name: aops-zeus Version: v1.1.1 -Release: 1 +Release: 2 Summary: A host and user manager service which is the foundation of aops. License: MulanPSL2 URL: https://gitee.com/openeuler/%{name} Source0: %{name}-%{version}.tar.gz +Patch0001: 0001-update-delete-host.patch BuildRequires: python3-setuptools Requires: aops-vulcanus >= %{version}-%{release} @@ -19,7 +20,7 @@ A host and user manager service which is the foundation of aops. %prep -%autosetup -n %{name}-%{version} +%autosetup -n %{name}-%{version} -p1 # build for aops-zeus @@ -40,6 +41,9 @@ A host and user manager service which is the foundation of aops. %changelog +* Tue Dec 06 2022 wenxin - v1.1.1-2 +- update delete host, remove the judgment about the workflow + * Fri Dec 02 2022 wenxin - v1.1.1-1 - set timeout for cve scan,cve fix ,repo set