Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/cosmos/azure-cosmos/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#### Breaking Changes

#### Bugs Fixed
- Fixed parsing of args for overloaded `container.read()` method.

#### Other Changes

Expand Down
4 changes: 2 additions & 2 deletions sdk/cosmos/azure-cosmos/azure/cosmos/container.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,9 @@ def read(
"the populate_query_metrics flag does not apply to this method and will be removed in the future",
UserWarning,
)
populate_partition_key_range_statistics = args[1] if args and len(args) > 0 else kwargs.pop(
populate_partition_key_range_statistics = args[1] if args and len(args) > 1 else kwargs.pop(
"populate_partition_key_range_statistics", None)
populate_quota_info = args[2] if args and len(args) > 1 else kwargs.pop("populate_quota_info", None)
populate_quota_info = args[2] if args and len(args) > 2 else kwargs.pop("populate_quota_info", None)
if populate_partition_key_range_statistics is not None:
request_options["populatePartitionKeyRangeStatistics"] = populate_partition_key_range_statistics
if populate_quota_info is not None:
Expand Down