Skip to content

Simplify is_job_done() to a single return statement#85

Open
blaipr wants to merge 1 commit into
ctrliq:mainfrom
blaipr:simplify-is-job-done
Open

Simplify is_job_done() to a single return statement#85
blaipr wants to merge 1 commit into
ctrliq:mainfrom
blaipr:simplify-is-job-done

Conversation

@blaipr

@blaipr blaipr commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace verbose if/else block in ControllerAPIModule.is_job_done() with an equivalent return job_status not in [...] one-liner

Test plan

  • ruff check plugins/ passes
  • ansible-test sanity passes
  • Job wait/cancel modules still function correctly

Replace the verbose if/else block with an equivalent one-liner using
`not in`, which is clearer and more Pythonic.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant