mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-11-03 15:37:56 +00:00
[Fixture] 添加task list 搜索,重试
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
from __future__ import absolute_import, unicode_literals
|
||||
|
||||
from common.utils import setattr_bulk, get_logger
|
||||
from ops.tasks import push_users
|
||||
from .tasks import push_users
|
||||
from .hands import User, UserGroup, Asset, AssetGroup, SystemUser
|
||||
|
||||
logger = get_logger(__file__)
|
||||
@@ -231,7 +231,7 @@ def push_system_user(assets, system_user):
|
||||
|
||||
assets = [asset._to_secret_json() for asset in assets]
|
||||
system_user = system_user._to_secret_json()
|
||||
task = push_users(assets, system_user)
|
||||
task = push_users.delay(assets, system_user)
|
||||
return task.id
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user