mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-01 07:27:35 +00:00
perf: automation .account -> .all_accounts
This commit is contained in:
@@ -237,7 +237,7 @@ class JMSInventory:
|
||||
return accounts_sorted
|
||||
|
||||
def get_asset_sorted_accounts(self, asset):
|
||||
accounts = list(asset.accounts.filter(is_active=True))
|
||||
accounts = list(asset.all_accounts.filter(is_active=True))
|
||||
accounts_sorted = self.sorted_accounts(accounts)
|
||||
return accounts_sorted
|
||||
|
||||
|
Reference in New Issue
Block a user