Commit 6d1c50e1 authored by 广宏伟's avatar 广宏伟

Merged in dev (pull request #107)

[Update] sftp不显示无法自动登录的
parents d361450c 3484b3ec
......@@ -92,7 +92,10 @@ class SFTPServer(paramiko.SFTPServerInterface):
asset = self.hosts.get(host)
if not asset:
return []
return [su for su in asset.system_users_granted if su.protocol == "ssh"]
return [
su for su in asset.system_users_granted
if su.protocol == "ssh" and su.login_mode != 'auto'
]
def su_in_asset(self, su, host):
system_users = self.get_asset_system_users(host)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment