fix the wrong env variable AZURE_BLOB_CONTAINER_NAME (#4455)

This commit is contained in:
Jyong 2024-05-16 18:30:52 +08:00 committed by GitHub
parent d8f38f79f2
commit bdd409970f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,7 +14,7 @@ class AzureStorage(BaseStorage):
def __init__(self, app: Flask):
super().__init__(app)
app_config = self.app.config
self.bucket_name = app_config.get('AZURE_STORAGE_CONTAINER_NAME')
self.bucket_name = app_config.get('AZURE_BLOB_CONTAINER_NAME')
sas_token = generate_account_sas(
account_name=app_config.get('AZURE_BLOB_ACCOUNT_NAME'),
account_key=app_config.get('AZURE_BLOB_ACCOUNT_KEY'),