upgrade azure-storage-blob to 12.8.0 (#625)

Note, this makes use of the new feature, `ContainerClient.exists()` which models our existing mechanism for doing container existence checking.
This commit is contained in:
bmc-msft
2021-03-03 05:33:23 -05:00
committed by GitHub
parent b30ade7d0c
commit 78d6adf555
3 changed files with 4 additions and 7 deletions

View File

@ -10,7 +10,7 @@ import urllib.parse
from typing import Dict, Optional, Union, cast
from azure.common import AzureHttpError, AzureMissingResourceHttpError
from azure.core.exceptions import ResourceExistsError, ResourceNotFoundError
from azure.core.exceptions import ResourceExistsError
from azure.storage.blob import (
BlobClient,
BlobSasPermissions,
@ -74,11 +74,8 @@ def find_container(
# increased IOP rates, this should be a slight optimization
for account in reversed(accounts):
client = get_blob_service(account).get_container_client(container)
try:
client.get_container_properties()
if client.exists():
return client
except ResourceNotFoundError:
continue
return None

View File

@ -17,7 +17,7 @@ azure-mgmt-storage~=17.0.0
azure-mgmt-resource~=16.0.0
azure-mgmt-subscription~=1.0.0
azure-nspkg==3.0.2
azure-storage-blob==12.7.0
azure-storage-blob==12.8.0
azure-storage-common==2.1.0
azure-storage-queue==12.1.5
jinja2~=2.11.3

View File

@ -9,7 +9,7 @@ dataclasses~=0.6
pydantic~=1.7.3 --no-binary=pydantic
memoization~=0.3.1
msrestazure==0.6.4
azure-storage-blob~=12.3
azure-storage-blob~=12.8
azure-applicationinsights==0.1.0
tenacity==6.3.1
docstring_parser==0.7.3