!27 [sync] PR-26: 调整数据库host表中username字段长度限制

From: @openeuler-sync-bot 
Reviewed-by: @zhu-yuncheng 
Signed-off-by: @zhu-yuncheng
This commit is contained in:
openeuler-ci-bot 2023-05-09 08:31:26 +00:00 committed by Gitee
commit b5d3b4d4bd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 1 deletions

View File

@ -0,0 +1,25 @@
From 4276d15604e0445558009a7c48dce323073cd2d3 Mon Sep 17 00:00:00 2001
From: rabbitali <shusheng.wen@outlook.com>
Date: Tue, 9 May 2023 11:03:45 +0800
Subject: [PATCH] update length limit of username field
---
vulcanus/database/table.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/vulcanus/database/table.py b/vulcanus/database/table.py
index 0c8d2c1..23ad889 100644
--- a/vulcanus/database/table.py
+++ b/vulcanus/database/table.py
@@ -56,7 +56,7 @@ class Host(Base, MyBase): # pylint: disable=R0903
last_scan = Column(Integer)
scene = Column(String(255))
os_version = Column(String(40))
- ssh_user = Column(String(20), default="root")
+ ssh_user = Column(String(40), default="root")
ssh_port = Column(Integer(), default=22)
pkey = Column(String(2048))
status = Column(Integer(), default=2)
--
Gitee

View File

@ -1,6 +1,6 @@
Name: aops-vulcanus Name: aops-vulcanus
Version: v1.2.0 Version: v1.2.0
Release: 3 Release: 4
Summary: A basic tool libraries of aops, including logging, configure and response, etc. Summary: A basic tool libraries of aops, including logging, configure and response, etc.
License: MulanPSL2 License: MulanPSL2
URL: https://gitee.com/openeuler/%{name} URL: https://gitee.com/openeuler/%{name}
@ -9,6 +9,8 @@ Patch0001: 0001-fix-script-docker-install-error.patch
Patch0002: 0002-add-custom-validation-rules.patch Patch0002: 0002-add-custom-validation-rules.patch
Patch0003: 0003-old-token-is-invalid.patch Patch0003: 0003-old-token-is-invalid.patch
Patch0004: 0004-add-gevent-config-item-for-uwsgi.patch Patch0004: 0004-add-gevent-config-item-for-uwsgi.patch
Patch0005: 0005-update-length-limit-of-username-field.patch
BuildRequires: python3-setuptools BuildRequires: python3-setuptools
Requires: python3-concurrent-log-handler python3-xmltodict python3-pyyaml python3-marshmallow >= 3.13.0 Requires: python3-concurrent-log-handler python3-xmltodict python3-pyyaml python3-marshmallow >= 3.13.0
@ -63,6 +65,9 @@ cp -r scripts %{buildroot}/opt/aops/
%changelog %changelog
* Tue May 9 2023 wenxin<shusheng.wen@outlook.com> - v1.2.0-4
- update length limit of username field
* Mon May 8 2023 gongzhengtang<gong_zhengtang@163.com> - v1.2.0-3 * Mon May 8 2023 gongzhengtang<gong_zhengtang@163.com> - v1.2.0-3
- add gevent config item for uwsgi; fix old token is invalid - add gevent config item for uwsgi; fix old token is invalid