Skip to content

Commit

Permalink
Fix account host (#480)
Browse files Browse the repository at this point in the history
* Updated with account_host.
  • Loading branch information
dorbaker authored Jul 1, 2024
1 parent 5c24b2e commit 126ffc0
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions adlfs/spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,11 @@ class AzureBlobFileSystem(AsyncFileSystem):
read_timeout: int
The number of seconds the client will wait, between consecutive read operations,
for a response from the server while uploading or downloading a blob.
account_host: str
The storage account host. This string is the entire url to the for the storage
after the https://, i.e. "https://{account_host}". This parameter is only
required for Azure clouds where account urls do not end with "blob.core.windows.net".
Note that the account_name parameter is still required.
Pass on to fsspec:
Expand Down Expand Up @@ -257,6 +262,7 @@ def __init__(
timeout: Optional[int] = None,
connection_timeout: Optional[int] = None,
read_timeout: Optional[int] = None,
account_host: str = None,
**kwargs,
):
super_kwargs = {
Expand Down Expand Up @@ -287,6 +293,8 @@ def __init__(
]
self.location_mode = location_mode
self.credential = credential
if account_host:
self.account_host = account_host
self.request_session = request_session
self.assume_container_exists = assume_container_exists
if socket_timeout is not _SOCKET_TIMEOUT_DEFAULT:
Expand Down

0 comments on commit 126ffc0

Please sign in to comment.