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