Skip to content

Commit

Permalink
[azure] Adapts generate_blob_shared_access_signature to new parameter (
Browse files Browse the repository at this point in the history
  • Loading branch information
hbaltz authored and jschneier committed Jul 19, 2019
1 parent 74b4e87 commit 0d802f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion storages/backends/azure_storage.py
Expand Up @@ -257,7 +257,7 @@ def url(self, name, expire=None):
make_blob_url_kwargs = {}
if expire:
sas_token = self.service.generate_blob_shared_access_signature(
self.azure_container, name, BlobPermissions.READ, expiry=self._expire_at(expire))
self.azure_container, name, permission=BlobPermissions.READ, expiry=self._expire_at(expire))
make_blob_url_kwargs['sas_token'] = sas_token

if self.azure_protocol:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_azure.py
Expand Up @@ -139,7 +139,7 @@ def test_url_expire(self):
self.storage._service.generate_blob_shared_access_signature.assert_called_once_with(
self.container_name,
'some_blob',
BlobPermissions.READ,
permission=BlobPermissions.READ,
expiry=fixed_time + timedelta(seconds=100))
self.storage._service.make_blob_url.assert_called_once_with(
container_name=self.container_name,
Expand Down

0 comments on commit 0d802f2

Please sign in to comment.