[7.x] Restore default metric='_all' to cluster.state()

This commit is contained in:
Seth Michael Larson
2020-03-10 12:08:03 -05:00
committed by GitHub
parent 210fae23d0
commit 8074ff294b
5 changed files with 50 additions and 1 deletions
+3
View File
@@ -102,6 +102,9 @@ class ClusterClient(NamespacedClient):
:arg wait_for_timeout: The maximum time to wait for
wait_for_metadata_version before timing out
"""
if index and metric in SKIP_IN_PATH:
metric = "_all"
return self.transport.perform_request(
"GET", _make_path("_cluster", "state", metric, index), params=params
)