mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-26 23:07:24 +00:00
fix: 修复执行批量命令时报错的问题 TypeError:set obiect is not subscriptable
This commit is contained in:
parent
30b89e5cc9
commit
4c7c8f482d
@ -47,7 +47,8 @@ class JMSPermedInventory(JMSInventory):
|
||||
self.assets_accounts_mapper = self.get_assets_accounts_mapper()
|
||||
|
||||
def get_asset_sorted_accounts(self, asset):
|
||||
return self.assets_accounts_mapper.get(asset.id, [])
|
||||
accounts = self.assets_accounts_mapper.get(asset.id, [])
|
||||
return list(accounts)
|
||||
|
||||
def get_assets_accounts_mapper(self):
|
||||
mapper = defaultdict(set)
|
||||
|
Loading…
Reference in New Issue
Block a user