don't use _make_path for static paths
This commit is contained in:
@@ -71,7 +71,7 @@ class Elasticsearch(object):
|
|||||||
def ping(self, params=None):
|
def ping(self, params=None):
|
||||||
""" Returns True if the cluster is up, False otherwise. """
|
""" Returns True if the cluster is up, False otherwise. """
|
||||||
try:
|
try:
|
||||||
self.transport.perform_request('HEAD', _make_path(), params=params)
|
self.transport.perform_request('HEAD', '/', params=params)
|
||||||
except TransportError:
|
except TransportError:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
@@ -79,7 +79,7 @@ class Elasticsearch(object):
|
|||||||
@query_params()
|
@query_params()
|
||||||
def info(self, params=None):
|
def info(self, params=None):
|
||||||
""" Get the basic info from the current cluster. """
|
""" 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
|
return data
|
||||||
|
|
||||||
@query_params('consistency', 'id', 'parent', 'percolate', 'refresh',
|
@query_params('consistency', 'id', 'parent', 'percolate', 'refresh',
|
||||||
|
|||||||
Reference in New Issue
Block a user