mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-04 13:34:46 +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
e9c8b80545
commit
c1ea37f6d5
1 changed files with 1 additions and 1 deletions
|
|
@ -639,7 +639,7 @@ class Elasticsearch2Index:
|
|||
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