!134 add interface to export migration check report
From: @xuezhizone Reviewed-by: @xingwei-liu Signed-off-by: @xingwei-liu
This commit is contained in:
commit
d6f42b19e3
38
0081-add-interface-to-export-migration-check-report.patch
Normal file
38
0081-add-interface-to-export-migration-check-report.patch
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
From 70b692876cec1e7615fe157fdab44293b0cbb697 Mon Sep 17 00:00:00 2001
|
||||||
|
From: lixin <lixinb@uniontech.com>
|
||||||
|
Date: Mon, 13 Nov 2023 14:39:14 +0800
|
||||||
|
Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=87=BA=E8=BF=81=E7=A7=BB=E6=A3=80?=
|
||||||
|
=?UTF-8?q?=E6=B5=8B=E6=8A=A5=E5=91=8A=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 2f5c946..505e91f 100644
|
||||||
|
--- a/index.py
|
||||||
|
+++ b/index.py
|
||||||
|
@@ -192,6 +192,17 @@ def get_storage_num():
|
||||||
|
return Response(mod, content_type='application/json')
|
||||||
|
|
||||||
|
|
||||||
|
+@app.route('/export_reports', methods=['GET', 'POST'])
|
||||||
|
+def export_reports():
|
||||||
|
+ """
|
||||||
|
+ 导出迁移检测报告
|
||||||
|
+ :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.2
|
Version: 1.0.2
|
||||||
Release: 80
|
Release: 81
|
||||||
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
|
||||||
@ -87,7 +87,7 @@ Patch77: 0077-copy-from-unzip-rpm-diractory-and-system-file-to-compatility-di
|
|||||||
Patch78: 0078-fill-in-the-data-in-the-checked-templace.patch
|
Patch78: 0078-fill-in-the-data-in-the-checked-templace.patch
|
||||||
Patch79: 0079-get-agent-storage-information.patch
|
Patch79: 0079-get-agent-storage-information.patch
|
||||||
Patch80: 0080-write-the-data-of-each-row-into-report.patch
|
Patch80: 0080-write-the-data-of-each-row-into-report.patch
|
||||||
|
Patch81: 0081-add-interface-to-export-migration-check-report.patch
|
||||||
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -187,6 +187,9 @@ rm -rf /usr/bin/migration-tools
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-81
|
||||||
|
- 0081-add-interface-to-export-migration-check-report.patch
|
||||||
|
|
||||||
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-80
|
* Tue Nov 5 2024 xuezhixin <xuezhixin@uniontech.com> - 1.0.2-80
|
||||||
- 0080-write-the-data-of-each-row-into-report.patch
|
- 0080-write-the-data-of-each-row-into-report.patch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user