Skip to content

Commit 797a750

Browse files
committed
Fixed missing fsaccess instantiation
1 parent 03494cc commit 797a750

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

cwltool/executors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ def run_jobs(self,
179179
prov_obj = job.prov_obj
180180
if prov_obj:
181181
runtime_context.prov_obj = prov_obj
182-
runtime_context.research_obj.fsaccess = runtime_context.make_fs_access('')
182+
prov_obj.fsaccess = runtime_context.make_fs_access('')
183183
prov_obj.evaluate(
184184
process, job, job_order_object,
185185
runtime_context.research_obj)

cwltool/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,7 @@ def formatTime(self, record, datefmt=None):
679679

680680
if args.provenance and runtimeContext.research_obj:
681681
# Can't really be combined with args.pack at same time
682+
runtimeContext.research_obj.fsaccess = getdefault(runtimeContext.make_fs_access, StdFsAccess)
682683
runtimeContext.research_obj.packed_workflow(
683684
print_pack(loadingContext.loader, processobj, uri, metadata))
684685

cwltool/workflow.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ def job(self,
583583
if runtimeContext.research_obj is not None:
584584
if runtimeContext.toplevel:
585585
# Record primary-job.json
586+
runtimeContext.research_obj.fsaccess = runtimeContext.make_fs_access('')
586587
runtimeContext.research_obj.create_job(builder.job, self.job)
587588

588589
job = WorkflowJob(self, runtimeContext)

0 commit comments

Comments
 (0)