mirror of https://github.com/jumpserver/jumpserver
fix: 修复执行批量命令时报错的问题 TypeError:set obiect is not subscriptable
parent
e4f117e753
commit
08f96d9eb8
|
@ -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