Skip to content

Commit

Permalink
fixes issue:1216
Browse files Browse the repository at this point in the history
  • Loading branch information
santhosh-reddy03 committed Feb 28, 2023
1 parent 6b7c78f commit 847a69f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions storages/backends/azure_storage.py
@@ -1,4 +1,5 @@
import mimetypes
import re
from datetime import datetime
from datetime import timedelta
from tempfile import SpooledTemporaryFile
Expand Down Expand Up @@ -128,6 +129,9 @@ def __init__(self, **settings):
self._custom_client = None
self._user_delegation_key = None
self._user_delegation_key_expiry = datetime.utcnow()
if self.connection_string and (not self.account_name or not self.account_key):
self.account_name = re.search(r'AccountName=(\w+);', self.connection_string)[1]
self.account_key = re.search(r'AccountKey=(.*);', self.connection_string)[1]

def get_default_settings(self):
return {
Expand Down

0 comments on commit 847a69f

Please sign in to comment.