Skip to content

Commit

Permalink
Propagate opaque_id to all API calls in scan helper
Browse files Browse the repository at this point in the history
  • Loading branch information
itsx committed Jun 14, 2023
1 parent eb0f622 commit 5d075b9
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 5d075b9

Please sign in to comment.