PYTHON-4538 await _check_user_provided (#1726)
This commit is contained in:
parent
b2f0a52003
commit
5cba4c44fe
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user