Skip to content

Commit

Permalink
Revert "Merge pull request #865 from rakutentech/support_es5_index_fix"
Browse files Browse the repository at this point in the history
This reverts commit c8829d4, reversing
changes made to b7a97eb.
  • Loading branch information
Qmando committed Jan 12, 2017
1 parent c8829d4 commit b7988fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elastalert/create_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ def main():
print('Index ' + index + ' already exists. Skipping index creation.')
return None

es.indices.index(index)
es.indices.create(index)
# To avoid a race condition. TODO: replace this with a real check
time.sleep(2)
es.indices.put_mapping(index=index, doc_type='elastalert', body=es_mapping)
Expand Down

0 comments on commit b7988fb

Please sign in to comment.