Skip to content

Commit

Permalink
Cast destination param string to bool when checking truthyness
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Apr 12, 2023
1 parent 387660b commit 55f5fe1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/galaxy/jobs/runners/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
)
from galaxy.tool_util.output_checker import DETECTED_JOB_STATE
from galaxy.util import (
asbool,
DATABASE_MAX_STRING_SIZE,
ExecutionTimer,
in_directory,
Expand Down Expand Up @@ -333,7 +334,7 @@ def get_work_dir_outputs(
output_paths = {}
for dataset_path in job_wrapper.job_io.get_output_fnames():
path = dataset_path.real_path
if job_wrapper.get_destination_configuration("outputs_to_working_directory", False):
if asbool(job_wrapper.get_destination_configuration("outputs_to_working_directory", False)):
path = dataset_path.false_path
output_paths[dataset_path.dataset_id] = path

Expand Down

0 comments on commit 55f5fe1

Please sign in to comment.