perf: inventiry account (#9474)

Co-authored-by: feng <1304903146@qq.com>
pull/9476/head
fit2bot 2023-02-08 20:42:06 +08:00 committed by GitHub
parent 7b9523d6be
commit d6d45f64fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -139,7 +139,7 @@ class JMSInventory:
return host
def select_account(self, asset):
accounts = list(asset.accounts.all(is_active=True))
accounts = list(asset.accounts.filter(is_active=True))
if not accounts:
return None
account_selected = None