From 588492a8adb78c097d26c709c48b13fafe828c4c Mon Sep 17 00:00:00 2001 From: Marcel Loose Date: Mon, 2 Dec 2024 23:33:48 +0100 Subject: [PATCH] Fix bug in coordination dir override (#5153) The override of the coordination directory that a user could make was not applied correctly. Instead of setting `self.coordination_dir` the variable `self.workDir` would be modified. This has been fixed. Co-authored-by: stxue1 <122345910+stxue1@users.noreply.github.com> --- src/toil/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/toil/common.py b/src/toil/common.py index 393ce16f60..7495f7e376 100644 --- a/src/toil/common.py +++ b/src/toil/common.py @@ -424,9 +424,9 @@ def set_option(option_name: str, old_names: Optional[list[str]] = None) -> None: # Override workDir with value of TOIL_WORKDIR_OVERRIDE if it exists if os.getenv("TOIL_WORKDIR_OVERRIDE") is not None: self.workDir = os.getenv("TOIL_WORKDIR_OVERRIDE") - # Override workDir with value of TOIL_WORKDIR_OVERRIDE if it exists + # Override coordination_dir with value of TOIL_COORDINATION_DIR_OVERRIDE if it exists if os.getenv("TOIL_COORDINATION_DIR_OVERRIDE") is not None: - self.workDir = os.getenv("TOIL_COORDINATION_DIR_OVERRIDE") + self.coordination_dir = os.getenv("TOIL_COORDINATION_DIR_OVERRIDE") self.check_configuration_consistency()