Docstring formatting
This commit is contained in:
@@ -142,7 +142,9 @@ class Elasticsearch(object):
|
|||||||
|
|
||||||
@query_params()
|
@query_params()
|
||||||
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', '/', params=params)
|
self.transport.perform_request('HEAD', '/', params=params)
|
||||||
except TransportError:
|
except TransportError:
|
||||||
@@ -151,7 +153,9 @@ 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', '/', params=params)
|
_, data = self.transport.perform_request('GET', '/', params=params)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user