Skip to content

Commit

Permalink
fix input checks
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 15, 2024
1 parent 7c5ccab commit 661f756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions executorlib/standalone/inputcheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,9 @@ def check_pmi(backend: str, pmi: Optional[str]) -> None:
"""
Check if pmi is valid for the selected backend and raise a ValueError if it is not.
"""
if backend != "flux" and pmi is not None:
if backend != "flux_allocation" and pmi is not None:
raise ValueError("The pmi parameter is currently only implemented for flux.")
elif backend == "flux" and pmi not in ["pmix", "pmi1", "pmi2", None]:
elif backend == "flux_allocation" and pmi not in ["pmix", "pmi1", "pmi2", None]:
raise ValueError(
"The pmi parameter supports [pmix, pmi1, pmi2], but not: " + pmi
)
Expand Down

0 comments on commit 661f756

Please sign in to comment.