diff --git a/attachment_azure/models/ir_attachment.py b/attachment_azure/models/ir_attachment.py index 0f265da..0586669 100644 --- a/attachment_azure/models/ir_attachment.py +++ b/attachment_azure/models/ir_attachment.py @@ -155,7 +155,7 @@ class IrAttachment(models.Model): 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) @@ -202,7 +202,7 @@ class IrAttachment(models.Model): 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)