fix:修复es日期索引忽略证书的问题

pull/8442/head
Eric 2022-06-20 13:50:16 +08:00 committed by 老广
parent 3fde31f2e0
commit 710cd0fb3b
1 changed files with 1 additions and 1 deletions

View File

@ -84,7 +84,7 @@ class CommandStorage(CommonStorageModelMixin, CommonModelMixin):
config = self.config
if self.type_es and config.get('INDEX_BY_DATE'):
engine_mod = import_module(TYPE_ENGINE_MAPPING[self.type])
store = engine_mod.CommandStore(config)
store = engine_mod.CommandStore(dict(**config))
store._ensure_index_exists()
index_prefix = config.get('INDEX') or 'jumpserver'
date = local_now_date_display()