mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-02 07:55:16 +00:00
fix: 修复创建 ES 存储 get_mapping index 使用位置参数
This commit is contained in:
@@ -91,7 +91,7 @@ class ES(object):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# 获取索引信息,如果没有定义,直接返回
|
# 获取索引信息,如果没有定义,直接返回
|
||||||
data = self.es.indices.get_mapping(self.index)
|
data = self.es.indices.get_mapping(index=self.index)
|
||||||
except NotFoundError:
|
except NotFoundError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user