Skip to content

Commit

Permalink
fixed etag bug in async lease
Browse files Browse the repository at this point in the history
  • Loading branch information
tasherif-msft committed Aug 12, 2020
1 parent b9b1856 commit fa8f27d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit fa8f27d

Please sign in to comment.