diff --git a/plugin/storage/es/esRollover.py b/plugin/storage/es/esRollover.py index 23eb8ef7fff..5ef784c1927 100755 --- a/plugin/storage/es/esRollover.py +++ b/plugin/storage/es/esRollover.py @@ -108,12 +108,8 @@ def create_index(client, name): Create archive index """ print('Creating index {}'.format(name)) - create = curator.CreateIndex(client=client, name=name) - try: - create.do_action() - except curator.exceptions.FailedExecution as e: - if "index_already_exists_exception" not in str(e) and "resource_already_exists_exception" not in str(e): - raise e + create = curator.CreateIndex(client=client, name=name, ignore_existing=True) + create.do_action() def create_aliases(client, alias_name, archive_index_name):