Skip to content

Commit

Permalink
game coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mlin committed Jun 30, 2020
1 parent 2099168 commit de2ddbe
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions WDL/runtime/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,16 +185,8 @@ def awscli_downloader(
}.items()
if v
)
if host_aws_credentials:
logger.getChild("awscli_downloader").info(
"using host's AWS credentials; to disable, configure [download_awscli] host_credentials=false (MINIWDL__DOWNLOAD_AWSCLI__HOST_CREDENTIALS=false)"
)
except Exception:
pass
if not host_aws_credentials:
logger.getChild("awscli_downloader").warning(
"no AWS credentials available on host; if needed, install awscli+boto3 and `aws configure`"
)

inputs = {"uri": uri}
with ExitStack() as cleanup:
Expand All @@ -211,6 +203,13 @@ def awscli_downloader(
# make file group-readable to ensure it'll be usable if the docker image runs as non-root
os.chmod(aws_credentials_file.name, os.stat(aws_credentials_file.name).st_mode | 0o40)
inputs["aws_credentials"] = aws_credentials_file.name
logger.getChild("awscli_downloader").info(
"using host's AWS credentials; to disable, configure [download_awscli] host_credentials=false (MINIWDL__DOWNLOAD_AWSCLI__HOST_CREDENTIALS=false)"
)
else:
logger.getChild("awscli_downloader").warning(
"no AWS credentials available on host; if needed, install awscli+boto3 and `aws configure`"
)

wdl = r"""
task aws_s3_cp {
Expand Down

0 comments on commit de2ddbe

Please sign in to comment.