Skip to content

Commit

Permalink
hot-fix: incorrect bucket bug (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
jtyoung84 authored Mar 12, 2024
1 parent 495e39a commit 77ad35d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/aind_data_transfer_service/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,13 @@ async def submit_hpc_jobs(request: Request): # noqa: C901
job["upload_job_settings"]
).s3_prefix
upload_job_configs = json.loads(job["upload_job_settings"])
# This will set the bucket to the private data one
if upload_job_configs.get("s3_bucket") is not None:
upload_job_configs = json.loads(
BasicUploadJobConfigs.model_validate(
upload_job_configs
).model_dump_json()
)
# The aws creds to use are different for aind-open-data and
# everything else
if upload_job_configs.get("s3_bucket") == OPEN_DATA_BUCKET_NAME:
Expand Down

0 comments on commit 77ad35d

Please sign in to comment.