Skip to content

Commit 5d075b9

Browse files
committed
Propagate opaque_id to all API calls in scan helper
1 parent eb0f622 commit 5d075b9

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

elasticsearch/helpers/actions.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -672,7 +672,14 @@ def pop_transport_kwargs(kw: MutableMapping[str, Any]) -> Dict[str, Any]:
672672
# Grab options that should be propagated to every
673673
# API call within this helper instead of just 'search()'
674674
transport_kwargs = {}
675-
for key in ("headers", "api_key", "http_auth", "basic_auth", "bearer_auth"):
675+
for key in (
676+
"headers",
677+
"api_key",
678+
"http_auth",
679+
"basic_auth",
680+
"bearer_auth",
681+
"opaque_id",
682+
):
676683
try:
677684
value = kw.pop(key)
678685
if key == "http_auth":

0 commit comments

Comments
 (0)