Skip to content

Commit

Permalink
chore: rename default_access_method to https_access_method
Browse files Browse the repository at this point in the history
  • Loading branch information
davidlougheed committed Oct 17, 2023
1 parent 6c7ca27 commit b0a7b09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions chord_drs/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ def build_blob_json(drs_blob: DrsBlob, inside_container: bool = False) -> DRSObj
url_for("drs_service.object_download", object_id=drs_blob.id).lstrip("/")
)

default_access_method: DRSAccessMethodDict = {
https_access_method: DRSAccessMethodDict = {
"access_url": {
# url_for external was giving weird results - build the URL by hand instead using the internal url_for
"url": blob_url,
Expand All @@ -196,7 +196,7 @@ def build_blob_json(drs_blob: DrsBlob, inside_container: bool = False) -> DRSObj
"type": "https",
}

access_methods: list[DRSAccessMethodDict] = [default_access_method]
access_methods: list[DRSAccessMethodDict] = [https_access_method]

if inside_container and data_source == DATA_SOURCE_LOCAL:
access_methods.append({
Expand Down

0 comments on commit b0a7b09

Please sign in to comment.