mirror of https://github.com/jumpserver/jumpserver
perf: change secret
parent
042c3d1ba8
commit
30e64ecfc1
|
@ -35,7 +35,7 @@ class ChangeSecretAutomationViewSet(OrgBulkModelViewSet):
|
||||||
|
|
||||||
class ChangeSecretRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet):
|
class ChangeSecretRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet):
|
||||||
filterset_class = ChangeSecretRecordFilterSet
|
filterset_class = ChangeSecretRecordFilterSet
|
||||||
search_fields = ('asset__address', 'account_username')
|
search_fields = ('asset__address', 'account__username')
|
||||||
ordering_fields = ('date_finished',)
|
ordering_fields = ('date_finished',)
|
||||||
tp = AutomationTypes.change_secret
|
tp = AutomationTypes.change_secret
|
||||||
serializer_classes = {
|
serializer_classes = {
|
||||||
|
|
|
@ -155,7 +155,7 @@ class ChangeSecretDashboardApi(APIView):
|
||||||
if name == self.task_name and tp == self.tp:
|
if name == self.task_name and tp == self.tp:
|
||||||
execution_ids.append(_id)
|
execution_ids.append(_id)
|
||||||
|
|
||||||
snapshots = AutomationExecution.objects.filter(id__in=execution_ids).values_list('id', 'snapshot')
|
snapshots = AutomationExecution.objects.filter(id__in=execution_ids).values_list('snapshot', flat=True)
|
||||||
|
|
||||||
asset_ids = {asset for i in snapshots for asset in i.get('assets', [])}
|
asset_ids = {asset for i in snapshots for asset in i.get('assets', [])}
|
||||||
account_ids = {account for i in snapshots for account in i.get('accounts', [])}
|
account_ids = {account for i in snapshots for account in i.get('accounts', [])}
|
||||||
|
|
|
@ -44,7 +44,7 @@ class PushAccountExecutionViewSet(AutomationExecutionViewSet):
|
||||||
|
|
||||||
class PushAccountRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet):
|
class PushAccountRecordViewSet(mixins.ListModelMixin, OrgGenericViewSet):
|
||||||
filterset_class = PushAccountRecordFilterSet
|
filterset_class = PushAccountRecordFilterSet
|
||||||
search_fields = ('asset__address', 'account_username')
|
search_fields = ('asset__address', 'account__username')
|
||||||
ordering_fields = ('date_finished',)
|
ordering_fields = ('date_finished',)
|
||||||
tp = AutomationTypes.push_account
|
tp = AutomationTypes.push_account
|
||||||
serializer_classes = {
|
serializer_classes = {
|
||||||
|
|
|
@ -138,7 +138,7 @@ msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/push_account/manager.py:30
|
#: accounts/automations/push_account/manager.py:30
|
||||||
msgid "Secret cannot be empty"
|
msgid "Secret cannot be empty"
|
||||||
msgstr "{} no puede estar vacío"
|
msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/verify_gateway_account/manager.py:18
|
#: accounts/automations/verify_gateway_account/manager.py:18
|
||||||
msgid ">>> Start executing the task to test gateway account connectivity"
|
msgid ">>> Start executing the task to test gateway account connectivity"
|
||||||
|
|
|
@ -117,7 +117,7 @@ msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/push_account/manager.py:30
|
#: accounts/automations/push_account/manager.py:30
|
||||||
msgid "Secret cannot be empty"
|
msgid "Secret cannot be empty"
|
||||||
msgstr "{} は空ではありません。"
|
msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/verify_gateway_account/manager.py:18
|
#: accounts/automations/verify_gateway_account/manager.py:18
|
||||||
msgid ">>> Start executing the task to test gateway account connectivity"
|
msgid ">>> Start executing the task to test gateway account connectivity"
|
||||||
|
|
|
@ -117,7 +117,7 @@ msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/push_account/manager.py:30
|
#: accounts/automations/push_account/manager.py:30
|
||||||
msgid "Secret cannot be empty"
|
msgid "Secret cannot be empty"
|
||||||
msgstr "{} não pode estar vazio."
|
msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/verify_gateway_account/manager.py:18
|
#: accounts/automations/verify_gateway_account/manager.py:18
|
||||||
msgid ">>> Start executing the task to test gateway account connectivity"
|
msgid ">>> Start executing the task to test gateway account connectivity"
|
||||||
|
|
|
@ -119,7 +119,7 @@ msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/push_account/manager.py:30
|
#: accounts/automations/push_account/manager.py:30
|
||||||
msgid "Secret cannot be empty"
|
msgid "Secret cannot be empty"
|
||||||
msgstr "{} не может быть пустым"
|
msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/verify_gateway_account/manager.py:18
|
#: accounts/automations/verify_gateway_account/manager.py:18
|
||||||
msgid ">>> Start executing the task to test gateway account connectivity"
|
msgid ">>> Start executing the task to test gateway account connectivity"
|
||||||
|
|
|
@ -115,7 +115,7 @@ msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/push_account/manager.py:30
|
#: accounts/automations/push_account/manager.py:30
|
||||||
msgid "Secret cannot be empty"
|
msgid "Secret cannot be empty"
|
||||||
msgstr "{} 不能为空"
|
msgstr "密文不能为空"
|
||||||
|
|
||||||
#: accounts/automations/verify_gateway_account/manager.py:18
|
#: accounts/automations/verify_gateway_account/manager.py:18
|
||||||
msgid ">>> Start executing the task to test gateway account connectivity"
|
msgid ">>> Start executing the task to test gateway account connectivity"
|
||||||
|
|
|
@ -117,7 +117,7 @@ msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/push_account/manager.py:30
|
#: accounts/automations/push_account/manager.py:30
|
||||||
msgid "Secret cannot be empty"
|
msgid "Secret cannot be empty"
|
||||||
msgstr "{} 不能為空"
|
msgstr ""
|
||||||
|
|
||||||
#: accounts/automations/verify_gateway_account/manager.py:18
|
#: accounts/automations/verify_gateway_account/manager.py:18
|
||||||
msgid ">>> Start executing the task to test gateway account connectivity"
|
msgid ">>> Start executing the task to test gateway account connectivity"
|
||||||
|
|
Loading…
Reference in New Issue