mirror of https://github.com/jumpserver/jumpserver
网域网管取消密码不为空校验
parent
ee5894c296
commit
77461d7834
|
@ -63,8 +63,6 @@ class Gateway(BaseUser):
|
||||||
def test_connective(self, local_port=None):
|
def test_connective(self, local_port=None):
|
||||||
if local_port is None:
|
if local_port is None:
|
||||||
local_port = self.port
|
local_port = self.port
|
||||||
if not self.password:
|
|
||||||
return False, _("Password cannot be empty")
|
|
||||||
|
|
||||||
client = paramiko.SSHClient()
|
client = paramiko.SSHClient()
|
||||||
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
client.set_missing_host_key_policy(paramiko.AutoAddPolicy())
|
||||||
|
|
Loading…
Reference in New Issue