Skip to content

Commit

Permalink
Merge pull request camptocamp#352 from vrenaville/100fix_split
Browse files Browse the repository at this point in the history
fix: fix subdirectory issue
  • Loading branch information
vrenaville committed Mar 3, 2022
2 parents e2c90bd + 6e7e83f commit 3e83afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions attachment_azure/models/ir_attachment.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ def _store_file_read(self, fname, bin_size=False):
if fname.startswith("azure://"):
key = fname.replace("azure://", "", 1).lower()
if '/' in key:
container_name, key = key.split('/')
container_name, key = key.split('/', 1)
else:
container_name = None
container_client = self._get_azure_container(container_name)
Expand Down Expand Up @@ -205,7 +205,7 @@ def _store_file_delete(self, fname):
if fname.startswith("azure://"):
key = fname.replace("azure://", "", 1).lower()
if '/' in key:
container_name, key = key.split('/')
container_name, key = key.split('/', 1)
else:
container_name = None
container_client = self._get_azure_container(container_name)
Expand Down

0 comments on commit 3e83afc

Please sign in to comment.