prevent typing issue in azure_container (#31044)

prvent that issue
old-commit-hash: 840db1f1b7
chrysler-long2
Justin Newberry 1 year ago committed by GitHub
parent 6c21bbacae
commit 3d0ae1aaaa
  1. 2
      tools/lib/azure_container.py

@ -4,7 +4,6 @@ from functools import lru_cache
from pathlib import Path from pathlib import Path
from typing import IO, Union from typing import IO, Union
from azure.storage.blob import ContainerClient
TOKEN_PATH = Path("/data/azure_token") TOKEN_PATH = Path("/data/azure_token")
@ -49,6 +48,7 @@ class AzureContainer:
return f"{self.ACCOUNT_URL}/{self.CONTAINER}/" return f"{self.ACCOUNT_URL}/{self.CONTAINER}/"
def get_client_and_key(self): def get_client_and_key(self):
from azure.storage.blob import ContainerClient
client = ContainerClient(self.ACCOUNT_URL, self.CONTAINER, credential=get_azure_credential()) client = ContainerClient(self.ACCOUNT_URL, self.CONTAINER, credential=get_azure_credential())
key = get_container_sas(self.ACCOUNT, self.CONTAINER) key = get_container_sas(self.ACCOUNT, self.CONTAINER)
return client, key return client, key

Loading…
Cancel
Save