diff --git a/0018-add-interface-in-agent.patch b/0018-add-interface-in-agent.patch new file mode 100644 index 0000000000000000000000000000000000000000..db6f0c093d6f71b81c76e7749ad50c6832b81c91 --- /dev/null +++ b/0018-add-interface-in-agent.patch @@ -0,0 +1,37 @@ +From 26c0cd76dff728aee9bb24aa23a62258eb76a1d8 Mon Sep 17 00:00:00 2001 +From: lixin +Date: Mon, 13 Nov 2023 17:15:51 +0800 +Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8E=A5=E5=8F=A3?= +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +--- + index.py | 11 +++++++++++ + 1 file changed, 11 insertions(+) + +diff --git a/index.py b/index.py +index a392531..06a44c3 100644 +--- a/index.py ++++ b/index.py +@@ -204,6 +204,17 @@ def export_reports(): + return Response(mod, content_type='application/json') + + ++@app.route('/get_page_data', methods=['GET', 'POST']) ++def get_page_data(): ++ """ ++ 定时获取可用空间页面数据 ++ :return: ++ """ ++ mod = check_methods() ++ if mod: ++ return Response(mod, content_type='application/json') ++ ++ + @app.route('/', methods=['GET', 'POST']) + def MT_index(): + """ +-- +2.20.1 + diff --git a/migration-tools.spec b/migration-tools.spec index 4236a41a0f58e078f5d1c6fae7f9c4204ce27193..ec527ac373dabbb9a8de999f98427101a1d4f811 100644 --- a/migration-tools.spec +++ b/migration-tools.spec @@ -1,6 +1,6 @@ Name: migration-tools Version: 1.0.3 -Release: 17 +Release: 18 License: MulanPSL-2.0 Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system Source0: %{name}-%{version}.tar.gz @@ -24,7 +24,7 @@ Patch014: 0014-compare-with-request-agent-ip.patch Patch015: 0015-agent-sends-the-task-after-receving-the-request.patch Patch016: 0016-export-migration-log.patch Patch017: 0017-add-task-to-check-repo.patch - +Patch018: 0018-add-interface-in-agent.patch BuildArch: noarch BuildRequires: systemd @@ -123,6 +123,9 @@ rm -rf /usr/bin/migration-tools %endif %changelog +* Mon Nov 11 2024 xuezhixin - 1.0.3-18 +- 0018-add-interface-in-agent.patch + * Mon Nov 11 2024 xuezhixin - 1.0.3-17 - 0017-add-task-to-check-repo.patch