Skip to content

Commit f569eff

Browse files
authored
fix: correctly initializes the completion time of the copy properties of a blob (#34559)
1 parent f5cc8f3 commit f569eff

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

sdk/storage/azure-storage-blob/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Python 3.12.
1414
- Fixed an issue where authentication errors could raise `AttributeError` instead of `ClientAuthenticationError` when
1515
using async OAuth credentials.
1616
- Fixed an typing issue which incorrectly typed the `readinto` API. The correct input type is `IO[bytes]`.
17+
- Fixed a typo in the initialization of `completion_time` for the `CopyProperties` model.
1718

1819
## 12.19.0 (2023-11-07)
1920

sdk/storage/azure-storage-blob/azure/storage/blob/_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def __init__(self, **kwargs):
651651
self.source = kwargs.get('x-ms-copy-source')
652652
self.status = get_enum_value(kwargs.get('x-ms-copy-status'))
653653
self.progress = kwargs.get('x-ms-copy-progress')
654-
self.completion_time = kwargs.get('x-ms-copy-completion_time')
654+
self.completion_time = kwargs.get('x-ms-copy-completion-time')
655655
self.status_description = kwargs.get('x-ms-copy-status-description')
656656
self.incremental_copy = kwargs.get('x-ms-incremental-copy')
657657
self.destination_snapshot = kwargs.get('x-ms-copy-destination-snapshot')

0 commit comments

Comments
 (0)