Commit 62d5de14 authored by ibuler's avatar ibuler

[Update] sftp获取资产时使用cache

parent 2d89332f
...@@ -77,7 +77,7 @@ class SFTPServer(paramiko.SFTPServerInterface): ...@@ -77,7 +77,7 @@ class SFTPServer(paramiko.SFTPServerInterface):
def get_permed_hosts(self): def get_permed_hosts(self):
hosts = {} hosts = {}
assets = app_service.get_user_assets( assets = app_service.get_user_assets(
self.server.connection.user self.server.connection.user, cache_policy='1',
) )
for asset in assets: for asset in assets:
if asset.protocol != 'ssh': if asset.protocol != 'ssh':
......
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