removes elastic support from opensearch-py library
Signed-off-by: Shivam Dhar <[email protected]>
This commit is contained in:
@@ -95,8 +95,6 @@ class AIOHttpConnection(AsyncConnection):
|
||||
headers=None,
|
||||
ssl_context=None,
|
||||
http_compress=None,
|
||||
cloud_id=None,
|
||||
api_key=None,
|
||||
opaque_id=None,
|
||||
loop=None,
|
||||
**kwargs,
|
||||
@@ -130,9 +128,6 @@ class AIOHttpConnection(AsyncConnection):
|
||||
information.
|
||||
:arg headers: any custom http headers to be add to requests
|
||||
:arg http_compress: Use gzip compression
|
||||
:arg cloud_id: The Cloud ID from ElasticCloud. Convenient way to connect to cloud instances.
|
||||
Other host connection params will be ignored.
|
||||
:arg api_key: optional API Key authentication as either base64 encoded string or a tuple.
|
||||
:arg opaque_id: Send this value in the 'X-Opaque-Id' HTTP header
|
||||
For tracing all requests made by this transport.
|
||||
:arg loop: asyncio Event Loop to use with aiohttp. This is set by default to the currently running loop.
|
||||
@@ -146,8 +141,6 @@ class AIOHttpConnection(AsyncConnection):
|
||||
use_ssl=use_ssl,
|
||||
headers=headers,
|
||||
http_compress=http_compress,
|
||||
cloud_id=cloud_id,
|
||||
api_key=api_key,
|
||||
opaque_id=opaque_id,
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
@@ -62,8 +62,6 @@ class AIOHttpConnection(AsyncConnection):
|
||||
headers: Optional[Mapping[str, str]] = ...,
|
||||
ssl_context: Optional[Any] = ...,
|
||||
http_compress: Optional[bool] = ...,
|
||||
cloud_id: Optional[str] = ...,
|
||||
api_key: Optional[Any] = ...,
|
||||
opaque_id: Optional[str] = ...,
|
||||
loop: Any = ...,
|
||||
**kwargs: Any,
|
||||
|
||||
@@ -99,10 +99,6 @@ class AsyncTransport(Transport):
|
||||
*args, hosts=[], sniff_on_start=False, **kwargs
|
||||
)
|
||||
|
||||
# Don't enable sniffing on Cloud instances.
|
||||
if kwargs.get("cloud_id", False):
|
||||
sniff_on_start = False
|
||||
|
||||
# Since we defer connections / sniffing to not occur
|
||||
# within the constructor we never want to signal to
|
||||
# our parent to 'sniff_on_start' or non-empty 'hosts'.
|
||||
|
||||
Reference in New Issue
Block a user