[7.x] Restore default metric='_all' to cluster.state()
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user