Skip to content

Commit

Permalink
tasks.py: warn if task_id IS skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
aviau committed Nov 16, 2023
1 parent 567ede3 commit 9a60b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensearchpy/client/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def get(
:arg wait_for_completion: Should this request wait until the
operation has completed before returning. Default is false.
"""
if task_id in SKIP_IN_PATH:
if task_id not in SKIP_IN_PATH:
warnings.warn(
"Calling client.tasks.get() without a task_id is deprecated "
"and will be removed in v8.0. Use client.tasks.list() instead.",
Expand Down

0 comments on commit 9a60b4c

Please sign in to comment.