Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Restore default metric='_all' to cluster.state() #1143

Merged
merged 6 commits into from
Mar 10, 2020

Conversation

sethmlarson
Copy link
Contributor

It looks like this little piece of logic was lost in the API auto-generation commit. I went through that commit and I didn't see any other special logic that was lost so we should be good now?
Should probably release a 7.5.2 with the past few commits and fixes.

Closes #1141

@sethmlarson sethmlarson requested a review from honzakral March 10, 2020 15:29
@@ -102,6 +102,9 @@ def state(self, metric=None, index=None, params=None):
:arg wait_for_timeout: The maximum time to wait for
wait_for_metadata_version before timing out
"""
if index and not metric:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think just for consistency we might want to check against SKIP_IN_PATH instead of just the bool value. It amounts to the same thing in this case pretty much but would probably be better

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah agreed.

@sethmlarson sethmlarson merged commit ef75a78 into master Mar 10, 2020
@sethmlarson sethmlarson deleted the cluster-state-default branch March 10, 2020 16:30
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cluster.state(index='name')['routing_table'] not found in client 7.5.1
2 participants