Fix upload_object_via_stream() in Azure storage driver

This commit is contained in:
allegroai 2020-05-08 22:13:39 +03:00
parent 0298b84030
commit 5d04b21a79

View File

@ -1587,7 +1587,7 @@ class _AzureBlobServiceStorageDriver(_Driver):
container.blob_service.create_blob_from_bytes(
container.name,
object_name,
bytes(iterator),
iterator.read() if hasattr(iterator, "read") else bytes(iterator),
# timeout=300,
max_connections=2,
)