perf: push accounts log error (#9364)

Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
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

View File

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