fix: 修复执行批量命令时报错的问题 TypeError:set obiect is not subscriptable

v3.1
Bai 2023-04-12 18:13:55 +08:00 committed by Jiangjie.Bai
parent e4f117e753
commit 08f96d9eb8
1 changed files with 2 additions and 1 deletions

View File

@ -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)