Skip to content

Commit

Permalink
bodsdata.py: Fix bucket url
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Mar 6, 2024
1 parent 0fcbc93 commit 4c22c83
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bodsdata.py
Original file line number Diff line number Diff line change
Expand Up @@ -888,7 +888,8 @@ def publish_metadata(source, title="", description="", upload=True):
"title": title}

bucket = get_s3_bucket(upload_bucket)
bucket_url = f"{bucket.meta.client.meta.endpoint_url}/{bucket.name}"
#bucket_url = f"{bucket.meta.client.meta.endpoint_url}/{bucket.name}"
bucket_url = f"https://{bucket.name}.{bucket.meta.client.meta.endpoint_url.split('/')[-1]}"

all_sources = set()
inspect_data = {}
Expand Down

0 comments on commit 4c22c83

Please sign in to comment.