perf: push accounts log error (#9364)

Co-authored-by: feng <1304903146@qq.com>
pull/9368/head
fit2bot 2023-01-30 17:00:52 +08:00 committed by GitHub
parent e5ca8c5b2c
commit c7c56775d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -40,9 +40,8 @@ class PushAccountManager(PushOrVerifyHostCallbackMixin, AccountBasePlaybookManag
logger.debug(f'not privilege account')
return []
snapshot_account_usernames = self.execution.snapshot['accounts']
accounts = accounts.exclude(username=privilege_account.username)
if '*' in snapshot_account_usernames:
return accounts
return accounts.exclude(username=privilege_account.username)
asset = privilege_account.asset
self.create_nonlocal_accounts(accounts, snapshot_account_usernames, asset)