mirror of https://github.com/jumpserver/jumpserver
parent
8b351f49e5
commit
b100bbf838
|
@ -36,5 +36,5 @@ class ChangeSecretRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet):
|
|||
execution = get_object_or_none(AutomationExecution, pk=eid)
|
||||
if execution:
|
||||
queryset = queryset.filter(execution=execution)
|
||||
queryset = queryset.order_by('-date_start')
|
||||
queryset = queryset.order_by('-date_started')
|
||||
return queryset
|
||||
|
|
|
@ -9,7 +9,7 @@ logger = get_logger(__file__)
|
|||
|
||||
@shared_task(queue='ansible')
|
||||
def execute_automation(pid, trigger, tp):
|
||||
model = AutomationTypes.get_model(tp)
|
||||
model = AutomationTypes.get_type_model(tp)
|
||||
with tmp_to_root_org():
|
||||
instance = get_object_or_none(model, pk=pid)
|
||||
if not instance:
|
||||
|
|
Loading…
Reference in New Issue