Skip to content

Commit

Permalink
fix pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
jfennick committed Jun 23, 2023
1 parent 4163db4 commit c8ae1cd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
4 changes: 1 addition & 3 deletions cwltool/docker.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,9 +248,7 @@ def add_file_or_directory_volume(
"""Append volume a file/dir mapping to the runtime option list."""
if not volume.resolved.startswith("_:"):
_check_docker_machine_path(volume.resolved)
self.append_volume(
runtime, volume.resolved, volume.target, writable=volume.staged
)
self.append_volume(runtime, volume.resolved, volume.target, writable=volume.staged)

def add_writable_file_volume(
self,
Expand Down
11 changes: 2 additions & 9 deletions cwltool/job.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,8 @@ def relink_initialworkdir(
# directory, so therefore ineligable for being an output file.
# Thus, none of our business
continue
host_outdir_tgt = os.path.join(
host_outdir, vol.target[len(container_outdir) + 1 :]
)
mode = (
os.stat(host_outdir_tgt).st_mode
| stat.S_IWUSR
| stat.S_IWGRP
| stat.S_IWOTH
)
host_outdir_tgt = os.path.join(host_outdir, vol.target[len(container_outdir) + 1 :])
mode = os.stat(host_outdir_tgt).st_mode | stat.S_IWUSR | stat.S_IWGRP | stat.S_IWOTH
mode = 0o664 # Doesn't work for my code
mode = 0o777 # works for my code
if os.path.islink(host_outdir_tgt) or os.path.isfile(host_outdir_tgt):
Expand Down

0 comments on commit c8ae1cd

Please sign in to comment.