Skip to content

Commit

Permalink
fix: keep endpoints from azure for compatibility
Browse files Browse the repository at this point in the history
To maintain compatibility with old versions of the azure blob storage library
  • Loading branch information
jeqo committed Jan 8, 2024
1 parent 7107456 commit fb4a796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rohmu/object_storage/azure.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
SourceStorageModelT,
)
from rohmu.object_storage.config import ( # pylint: disable=unused-import
AZURE_ENDPOINT_SUFFIXES,
AZURE_ENDPOINT_SUFFIXES as ENDPOINT_SUFFIXES,
AZURE_MAX_BLOCK_SIZE as MAX_BLOCK_SIZE,
AzureObjectStorageConfig as Config,
calculate_azure_max_block_size as calculate_max_block_size,
Expand Down Expand Up @@ -122,7 +122,7 @@ def conn_string(
f"AccountKey={account_key}",
]
if not host and not port:
endpoint_suffix = AZURE_ENDPOINT_SUFFIXES[azure_cloud]
endpoint_suffix = ENDPOINT_SUFFIXES[azure_cloud]
conn.append(f"EndpointSuffix={endpoint_suffix}")
else:
conn.append(f"BlobEndpoint={protocol}://{host}:{port}/{account_name}")
Expand Down

0 comments on commit fb4a796

Please sign in to comment.