mirror of https://github.com/jumpserver/jumpserver
fix:修复es日期索引忽略证书的问题
parent
3fde31f2e0
commit
710cd0fb3b
|
@ -84,7 +84,7 @@ class CommandStorage(CommonStorageModelMixin, CommonModelMixin):
|
||||||
config = self.config
|
config = self.config
|
||||||
if self.type_es and config.get('INDEX_BY_DATE'):
|
if self.type_es and config.get('INDEX_BY_DATE'):
|
||||||
engine_mod = import_module(TYPE_ENGINE_MAPPING[self.type])
|
engine_mod = import_module(TYPE_ENGINE_MAPPING[self.type])
|
||||||
store = engine_mod.CommandStore(config)
|
store = engine_mod.CommandStore(dict(**config))
|
||||||
store._ensure_index_exists()
|
store._ensure_index_exists()
|
||||||
index_prefix = config.get('INDEX') or 'jumpserver'
|
index_prefix = config.get('INDEX') or 'jumpserver'
|
||||||
date = local_now_date_display()
|
date = local_now_date_display()
|
||||||
|
|
Loading…
Reference in New Issue