From e79afeb9c5d4e488ef006b7e1293deb3fd7bf444 Mon Sep 17 00:00:00 2001 From: Honza Kral Date: Wed, 7 Aug 2013 03:11:03 +0200 Subject: [PATCH] don't use _make_path for static paths --- elasticsearch/client/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/elasticsearch/client/__init__.py b/elasticsearch/client/__init__.py index c9af5446..c9706848 100644 --- a/elasticsearch/client/__init__.py +++ b/elasticsearch/client/__init__.py @@ -71,7 +71,7 @@ class Elasticsearch(object): def ping(self, params=None): """ Returns True if the cluster is up, False otherwise. """ try: - self.transport.perform_request('HEAD', _make_path(), params=params) + self.transport.perform_request('HEAD', '/', params=params) except TransportError: return False return True @@ -79,7 +79,7 @@ class Elasticsearch(object): @query_params() def info(self, params=None): """ Get the basic info from the current cluster. """ - _, data = self.transport.perform_request('GET', _make_path(), params=params) + _, data = self.transport.perform_request('GET', '/', params=params) return data @query_params('consistency', 'id', 'parent', 'percolate', 'refresh',