Skip to content

Commit 33c4c71

Browse files
committed
remove debug printf
1 parent bb8b576 commit 33c4c71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

stackinator/recipe.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,9 +323,10 @@ def generate_environment_specs(self, raw):
323323
match = re.match(r"^([A-Za-z][A-Za-z0-9_-]*)", spec)
324324
if match:
325325
mpi_name = match.group(1)
326-
if mpi_name not in ("cray-mpich", "openmpi"):
326+
supported_mpis = [k for k in self.mpi_templates.keys()]
327+
if mpi_name not in supported_mpis:
327328
raise Exception(
328-
f"{mpi_name} is not a supported MPI version: try one of cray-mpich or openmpi."
329+
f"{mpi_name} is not a supported MPI version: try one of {supported_mpis}."
329330
)
330331
else:
331332
raise Exception(f"{spec} is not a valid MPI spec")

0 commit comments

Comments
 (0)