26 lines
866 B
Diff
26 lines
866 B
Diff
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
|
|
|