Reflect new ES api for get aliases.

see https://github.com/elasticsearch/elasticsearch/issues/4539 for more
details
This commit is contained in:
Honza Král
2014-01-02 20:00:59 +01:00
parent fb14082f89
commit a49371b553
2 changed files with 8 additions and 1 deletions
+7
View File
@@ -3,6 +3,13 @@
Changelog
=========
0.4.5 (dev)
-----------
* `get_alias` now has `name` as another optional parameter due to issue #4539
in es repo. Note that the order of params have changed so if you are not
using keyword arguments this is a breaking change.
0.4.4 (2013-12-23)
------------------
+1 -1
View File
@@ -301,7 +301,7 @@ class IndicesClient(NamespacedClient):
return True
@query_params('allow_no_indices', 'expand_wildcards', 'ignore_indices', 'ignore_unavailable')
def get_alias(self, name, index=None, params=None):
def get_alias(self, index=None, name=None, params=None):
"""
Retrieve a specified alias.
`<http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-aliases.html>`_