Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Augspurger committed Jul 9, 2024
1 parent d6fcf2a commit 0ecf6c6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pctasks/core/pctasks/core/storage/blob.py
Original file line number Diff line number Diff line change
Expand Up @@ -746,7 +746,13 @@ def from_account_key(
f"https://{blob_uri.storage_account_name}.blob.core.windows.net"
)

user_delegation_key = get_user_delegation_key(account_url)
if account_key is None:
# Production
user_delegation_key = get_user_delegation_key(account_url)
else:
# Test / Azurite
user_delegation_key = None

sas_token = generate_container_sas(
account_name=blob_uri.storage_account_name,
container_name=blob_uri.container_name,
Expand Down

0 comments on commit 0ecf6c6

Please sign in to comment.