Skip to content

Commit

Permalink
check azure uri has the right account name
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Klegar <[email protected]>
  • Loading branch information
jklegar committed Dec 28, 2020
1 parent 2c4f0fc commit 1a9a10a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/python/feast/staging/storage_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ def list_files(self, uri: ParseResult) -> List[str]:
return [f"{self.account_url}/{bucket}/{path}"]

def _uri_to_bucket_key(self, uri: ParseResult) -> Tuple[str, str]:
assert uri.hostname is not None
assert uri.hostname == urlparse(self.account_url).hostname
bucket = uri.path.lstrip("/").split("/")[0]
key = uri.path.lstrip("/").split("/", 1)[1]
return bucket, key
Expand Down

0 comments on commit 1a9a10a

Please sign in to comment.