From 9ad6f79610b03a3532dd0aeddce3054fee572e2e Mon Sep 17 00:00:00 2001 From: Kian-Tat Lim Date: Wed, 3 Apr 2024 13:50:11 -0700 Subject: [PATCH] Change LFA object URL from https to s3. --- python/lsst/consdb/hinfo.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python/lsst/consdb/hinfo.py b/python/lsst/consdb/hinfo.py index 9e06e817..ae63f2f6 100644 --- a/python/lsst/consdb/hinfo.py +++ b/python/lsst/consdb/hinfo.py @@ -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)