Skip to content

Commit

Permalink
Merge pull request #6 from lsst-dm/tickets/DM-43665
Browse files Browse the repository at this point in the history
DM-43665: Change LFA object URL from https to s3.
  • Loading branch information
ktlim committed Apr 3, 2024
2 parents bad1248 + 9ad6f79 commit 0c47cad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/lsst/consdb/hinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,8 @@ async def main() -> None:
message = (await deserializer.deserialize(msg.value))["message"]
logging.debug(f"Received message {message}")
url = message["url"]
# Replace local HTTP access URL with generic S3 access URL.
url = re.sub(r"https://s3\.\w+\.lsst\.org/", "s3://", url)
if bucket_prefix:
url = re.sub(r"s3://", "s3://" + bucket_prefix, url)
resource = ResourcePath(url)
Expand Down

0 comments on commit 0c47cad

Please sign in to comment.