don't use _make_path for static paths

This commit is contained in:
Honza Kral
2013-08-07 03:11:03 +02:00
parent 7ebdb612b1
commit e79afeb9c5
+2 -2
View File
@@ -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',