From 5d075b956df89e11643e5be7aa5871133734d0ea Mon Sep 17 00:00:00 2001 From: itsx Date: Thu, 18 May 2023 19:04:20 +0200 Subject: [PATCH] Propagate opaque_id to all API calls in scan helper --- elasticsearch/helpers/actions.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/elasticsearch/helpers/actions.py b/elasticsearch/helpers/actions.py index a218c5e8c..48e45f05c 100644 --- a/elasticsearch/helpers/actions.py +++ b/elasticsearch/helpers/actions.py @@ -672,7 +672,14 @@ def pop_transport_kwargs(kw: MutableMapping[str, Any]) -> Dict[str, Any]: # Grab options that should be propagated to every # API call within this helper instead of just 'search()' transport_kwargs = {} - for key in ("headers", "api_key", "http_auth", "basic_auth", "bearer_auth"): + for key in ( + "headers", + "api_key", + "http_auth", + "basic_auth", + "bearer_auth", + "opaque_id", + ): try: value = kw.pop(key) if key == "http_auth":