Skip to content

[Cosmos] Bugfix: async create_container_if_not_exists throwing unexpected keyword argument on read() method - #29136

Merged
Simon Moreno (simorenoh) merged 2 commits into
Azure:mainfrom
simorenoh:create_container_if_not_exists_bugfix
Mar 3, 2023
Merged

Simon Moreno (simorenoh) merged 2 commits into
Azure:mainfrom
simorenoh:create_container_if_not_exists_bugfix

Conversation

@simorenoh

@simorenoh Simon Moreno (simorenoh) commented Mar 3, 2023 •

Copy link
Copy Markdown
Member

Closes #25318.
Bugfix for create_if_not_exists() when passing in kwargs that don't apply to read method. Now we pop the kwargs pre-emptively to calling read() and ensure that the method is not populated with irrelevant options, matching behavior of sync client.
image

@azure-sdk

Copy link
Copy Markdown
Collaborator

API change check

API changes are not detected in this pull request.

@simorenoh
Simon Moreno (simorenoh) merged commit b571e19 into Azure:main Mar 3, 2023
@simorenoh
Simon Moreno (simorenoh) deleted the create_container_if_not_exists_bugfix branch March 3, 2023 22:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

3 participants