Skip to content

Commit

Permalink
Propagate opaque_id to all API calls in scan helper (#2220)
Browse files Browse the repository at this point in the history
Co-authored-by: Nigel Small <[email protected]>
  • Loading branch information
itsx and technige authored Sep 5, 2023
1 parent 915bbd7 commit 75f48ca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion elasticsearch/helpers/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down

0 comments on commit 75f48ca

Please sign in to comment.