Skip to content

Commit 6f0482c

Browse files
committed
fix: ensuring that only SchedMD vars are deleted
1 parent 5a12e61 commit 6f0482c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snakemake_executor_plugin_slurm/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ def delete_slurm_environment():
1212
conflicting environments.
1313
"""
1414
for var in os.environ:
15-
if "SLURM" in var:
15+
if var.startswith("SLURM_"):
1616
del os.environ[var]

0 commit comments

Comments
 (0)