Skip to content

Commit cd78be4

Browse files
committed
fix: restrict download bucket creation to S3 URLs only
1 parent b987a31 commit cd78be4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cads_broker/entry_points.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -318,9 +318,10 @@ def init_db(connection_string: Optional[str] = None, force: bool = False) -> Non
318318
}
319319
download_buckets: List[str] = object_storage.parse_data_volumes_config()
320320
for download_bucket in download_buckets:
321-
object_storage.create_download_bucket(
322-
download_bucket, object_storage_url, **storage_kws
323-
)
321+
if download_bucket.startswith("s3://"):
322+
object_storage.create_download_bucket(
323+
download_bucket, object_storage_url, **storage_kws
324+
)
324325
print("successfully created the cache areas in the object storage.")
325326

326327

0 commit comments

Comments
 (0)