Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hot-fix: incorrect bucket bug #82

Merged
merged 1 commit into from
Mar 12, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading