Skip to content

Commit a78ecc9

Browse files
Set parameter nodes instead of node_id on list function in TaskClient
1 parent 94573cf commit a78ecc9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

elasticsearch/_async/client/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ async def list(
197197
if master_timeout is not None:
198198
__query["master_timeout"] = master_timeout
199199
if node_id is not None:
200-
__query["node_id"] = node_id
200+
__query["nodes"] = node_id
201201
if parent_task_id is not None:
202202
__query["parent_task_id"] = parent_task_id
203203
if pretty is not None:

elasticsearch/_sync/client/tasks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def list(
197197
if master_timeout is not None:
198198
__query["master_timeout"] = master_timeout
199199
if node_id is not None:
200-
__query["node_id"] = node_id
200+
__query["nodes"] = node_id
201201
if parent_task_id is not None:
202202
__query["parent_task_id"] = parent_task_id
203203
if pretty is not None:

0 commit comments

Comments
 (0)