From a63bad4e1de1a7ed02fc0f518f2b491126dff7b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Honza=20Kr=C3=A1l?= Date: Mon, 7 Dec 2015 18:41:13 +0100 Subject: [PATCH] Provide more documentation on _get_sniff_data --- elasticsearch/transport.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/elasticsearch/transport.py b/elasticsearch/transport.py index 8cd90b0a..505768d8 100644 --- a/elasticsearch/transport.py +++ b/elasticsearch/transport.py @@ -186,6 +186,12 @@ class Transport(object): Perform the request to get sniffins information. Returns a list of dictionaries (one per node) containing all the information from the cluster. + + It also sets the last_sniff attribute in case of a successful attempt. + + In rare cases it might be possible to override this method in your + custom Transport class to serve data from alternative source like + configuration management. """ previous_sniff = self.last_sniff