mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-08-29 11:23:17 +00:00
fix: 将 es 的 doc_type 默认值改为 _doc
This commit is contained in:
parent
ff804b2d19
commit
173c450b25
@ -153,7 +153,7 @@ class CommandStorageTypeESSerializer(serializers.Serializer):
|
|||||||
INDEX = serializers.CharField(
|
INDEX = serializers.CharField(
|
||||||
max_length=1024, default='jumpserver', label=_('Index'), allow_null=True
|
max_length=1024, default='jumpserver', label=_('Index'), allow_null=True
|
||||||
)
|
)
|
||||||
DOC_TYPE = ReadableHiddenField(default='command', label=_('Doc type'), allow_null=True)
|
DOC_TYPE = ReadableHiddenField(default='_doc', label=_('Doc type'), allow_null=True)
|
||||||
IGNORE_VERIFY_CERTS = serializers.BooleanField(
|
IGNORE_VERIFY_CERTS = serializers.BooleanField(
|
||||||
default=False, label=_('Ignore Certificate Verification'),
|
default=False, label=_('Ignore Certificate Verification'),
|
||||||
source='OTHER.IGNORE_VERIFY_CERTS', allow_null=True,
|
source='OTHER.IGNORE_VERIFY_CERTS', allow_null=True,
|
||||||
|
Loading…
Reference in New Issue
Block a user