Browse Source

Update es.py

pull/11129/head
nut 1 year ago committed by GitHub
parent
commit
2ffadcb9bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      apps/common/plugins/es.py

5
apps/common/plugins/es.py

@ -131,10 +131,7 @@ class ES(object):
}
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:
if e.error == 'resource_already_exists_exception':
logger.warning(e)

Loading…
Cancel
Save