From a74a39e5f31e80dfdfc092010816a715e25fe3a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Fri, 17 Jan 2014 14:59:17 +0100 Subject: [PATCH] Added timeouts to reroute --- elasticsearch/client/cluster.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/elasticsearch/client/cluster.py b/elasticsearch/client/cluster.py index 5c3c779d..d4be1464 100644 --- a/elasticsearch/client/cluster.py +++ b/elasticsearch/client/cluster.py @@ -57,7 +57,7 @@ class ClusterClient(NamespacedClient): return data - @query_params('dry_run', 'filter_metadata') + @query_params('dry_run', 'filter_metadata', 'master_timeout', 'timeout') def reroute(self, body=None, params=None): """ Explicitly execute a cluster reroute allocation command including specific commands. @@ -66,6 +66,8 @@ class ClusterClient(NamespacedClient): :arg body: The definition of `commands` to perform (`move`, `cancel`, `allocate`) :arg dry_run: Simulate the operation only and return the resulting state :arg filter_metadata: Don't return cluster state metadata (default: false) + :arg master_timeout: Explicit operation timeout for connection to master node + :arg timeout: Explicit operation timeout """ _, data = self.transport.perform_request('POST', '/_cluster/reroute', params=params, body=body) return data