mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-07-03 10:06:32 +00:00
Update es.py
This commit is contained in:
parent
47dd73eb4c
commit
2ffadcb9bc
@ -131,9 +131,6 @@ class ES(object):
|
|||||||
}
|
}
|
||||||
|
|
||||||
try:
|
try:
|
||||||
if version == '6':
|
|
||||||
self.es.indices.create(self.index, body=mappings)
|
|
||||||
else:
|
|
||||||
self.es.indices.create(index=self.index, body=mappings)
|
self.es.indices.create(index=self.index, body=mappings)
|
||||||
except RequestError as e:
|
except RequestError as e:
|
||||||
if e.error == 'resource_already_exists_exception':
|
if e.error == 'resource_already_exists_exception':
|
||||||
|
Loading…
Reference in New Issue
Block a user