mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-06-27 23:37:08 +00:00
perf: push accounts log error (#9364)
Co-authored-by: feng <1304903146@qq.com>
This commit is contained in:
parent
e5ca8c5b2c
commit
c7c56775d3
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user