PYTHON-4538 await _check_user_provided (#1726)

This commit is contained in:
Shane Harvey 2024-07-08 12:11:50 -04:00 committed by GitHub
parent b2f0a52003
commit 5cba4c44fe
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -228,7 +228,7 @@ class AsyncClientContext:
if self.auth_enabled:
if not self.serverless and not IS_SRV:
# See if db_user already exists.
if not self._check_user_provided():
if not await self._check_user_provided():
_create_user(self.client.admin, db_user, db_pwd)
self.client = await self._connect(