mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-21 05:21:54 +00:00
Use the exists_alias method with keyword arguments
Documentation for elasticsearch client suggests to pass arguments into exists_alias as keyword arguments: http://elasticsearch-py.readthedocs.io/en/6.0.0/api.html#elasticsearch.client.IndicesClient.exists_alias They changed order of arguments at least once: * https://github.com/elastic/elasticsearch-py/blob/1.6.0/elasticsearch/client/indices.py#L378 * https://github.com/elastic/elasticsearch-py/blob/1.7.0/elasticsearch/client/indices.py#L385 This is also fixes support for `ATOMIC_REBUILD`.
This commit is contained in:
parent
46891f3596
commit
c48fe70958
1 changed files with 1 additions and 1 deletions
|
|
@ -511,7 +511,7 @@ class ElasticsearchIndex(object):
|
|||
return self.es.indices.exists(self.name)
|
||||
|
||||
def is_alias(self):
|
||||
return self.es.indices.exists_alias(self.name)
|
||||
return self.es.indices.exists_alias(name=self.name)
|
||||
|
||||
def aliased_indices(self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue