mirror of https://github.com/jumpserver/jumpserver
fix: 无效的 es 报 500
parent
1942fc5a51
commit
0f0f0b6e4f
|
@ -43,6 +43,9 @@ class CommandStore():
|
|||
self.is_new_index_type()
|
||||
|
||||
def is_new_index_type(self):
|
||||
if not self.ping(timeout=3):
|
||||
return
|
||||
|
||||
# 检测索引是不是新的类型
|
||||
data = self.es.indices.get_mapping(self.index)
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue