mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-10 11:49:10 +00:00
fix: 账号备份参数控制
This commit is contained in:
@@ -23,7 +23,7 @@ def task_activity_callback(self, pid, trigger, *args, **kwargs):
|
|||||||
|
|
||||||
|
|
||||||
@shared_task(verbose_name=_('Execute account backup plan'), activity_callback=task_activity_callback)
|
@shared_task(verbose_name=_('Execute account backup plan'), activity_callback=task_activity_callback)
|
||||||
def execute_account_backup_task(pid, trigger):
|
def execute_account_backup_task(pid, trigger, **kwargs):
|
||||||
from accounts.models import AccountBackupAutomation
|
from accounts.models import AccountBackupAutomation
|
||||||
with tmp_to_root_org():
|
with tmp_to_root_org():
|
||||||
plan = get_object_or_none(AccountBackupAutomation, pk=pid)
|
plan = get_object_or_none(AccountBackupAutomation, pk=pid)
|
||||||
|
Reference in New Issue
Block a user