Skip to content

Commit 806d695

Browse files
jfennickmr-c
authored andcommitted
fix pylint
1 parent 08bb056 commit 806d695

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

cwltool/docker.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,7 @@ def add_file_or_directory_volume(
236236
"""Append volume a file/dir mapping to the runtime option list."""
237237
if not volume.resolved.startswith("_:"):
238238
_check_docker_machine_path(volume.resolved)
239-
self.append_volume(
240-
runtime, volume.resolved, volume.target, writable=volume.staged
241-
)
239+
self.append_volume(runtime, volume.resolved, volume.target, writable=volume.staged)
242240

243241
def add_writable_file_volume(
244242
self,

cwltool/job.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,8 @@ def relink_initialworkdir(
9898
# directory, so therefore ineligable for being an output file.
9999
# Thus, none of our business
100100
continue
101-
host_outdir_tgt = os.path.join(
102-
host_outdir, vol.target[len(container_outdir) + 1 :]
103-
)
104-
mode = (
105-
os.stat(host_outdir_tgt).st_mode
106-
| stat.S_IWUSR
107-
| stat.S_IWGRP
108-
| stat.S_IWOTH
109-
)
101+
host_outdir_tgt = os.path.join(host_outdir, vol.target[len(container_outdir) + 1 :])
102+
mode = os.stat(host_outdir_tgt).st_mode | stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH
110103
mode = 0o664 # Doesn't work for my code
111104
mode = 0o777 # works for my code
112105
if os.path.islink(host_outdir_tgt) or os.path.isfile(host_outdir_tgt):

0 commit comments

Comments
 (0)