From fa8f27d156fc12d7a13eeafbfbe3c1812e6f88d5 Mon Sep 17 00:00:00 2001 From: Tamer Sherif Date: Wed, 12 Aug 2020 16:06:59 -0700 Subject: [PATCH] fixed etag bug in async lease --- .../azure-storage-blob/azure/storage/blob/aio/_lease_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_lease_async.py b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_lease_async.py index 6fb5f18e1e7b..5f68a9b7b874 100644 --- a/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_lease_async.py +++ b/sdk/storage/azure-storage-blob/azure/storage/blob/aio/_lease_async.py @@ -115,7 +115,7 @@ async def acquire(self, lease_duration=-1, **kwargs): process_storage_error(error) self.id = response.get('lease_id') # type: str self.last_modified = response.get('last_modified') # type: datetime - self.etag = kwargs.get('etag') # type: str + self.etag = response.get('etag') # type: str @distributed_trace_async async def renew(self, **kwargs):