Don't ignore 400 errors when creating ES indices

It can reveal tricky issues, and ignoring the error is not going
to help anyway if the index has not been created when we blindly
expect it to present later.
This commit is contained in:
Mathieu Pillard 2017-07-07 14:07:20 +02:00
Родитель 48e6ff4fce
Коммит b52268bcc7
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -102,6 +102,6 @@ def create_index(index, config=None):
})
if not es.indices.exists(index):
es.indices.create(index, body=config, ignore=400)
es.indices.create(index, body=config)
return index