add interface in agent
This commit is contained in:
parent
366e35b879
commit
16a867bc76
37
0018-add-interface-in-agent.patch
Normal file
37
0018-add-interface-in-agent.patch
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
From 26c0cd76dff728aee9bb24aa23a62258eb76a1d8 Mon Sep 17 00:00:00 2001
|
||||||
|
From: lixin <lixinb@uniontech.com>
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,6 +1,6 @@
|
|||||||
Name: migration-tools
|
Name: migration-tools
|
||||||
Version: 1.0.3
|
Version: 1.0.3
|
||||||
Release: 17
|
Release: 18
|
||||||
License: MulanPSL-2.0
|
License: MulanPSL-2.0
|
||||||
Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system
|
Summary: A tool to help users migrate the Centos system to the UOS system and openEuler system
|
||||||
Source0: %{name}-%{version}.tar.gz
|
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
|
Patch015: 0015-agent-sends-the-task-after-receving-the-request.patch
|
||||||
Patch016: 0016-export-migration-log.patch
|
Patch016: 0016-export-migration-log.patch
|
||||||
Patch017: 0017-add-task-to-check-repo.patch
|
Patch017: 0017-add-task-to-check-repo.patch
|
||||||
|
Patch018: 0018-add-interface-in-agent.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
@ -123,6 +123,9 @@ rm -rf /usr/bin/migration-tools
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 11 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.3-18
|
||||||
|
- 0018-add-interface-in-agent.patch
|
||||||
|
|
||||||
* Mon Nov 11 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.3-17
|
* Mon Nov 11 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.3-17
|
||||||
- 0017-add-task-to-check-repo.patch
|
- 0017-add-task-to-check-repo.patch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user