mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-26 22:51:23 -07:00
mongodb_user: don't call buildInfo with Pymongo > 3.5 (#42350)
Bug: #35155
This commit is contained in:
parent
533656694e
commit
4ad7642ba0
1 changed files with 3 additions and 2 deletions
|
@ -383,7 +383,8 @@ def main():
|
||||||
client = MongoClient(**connection_params)
|
client = MongoClient(**connection_params)
|
||||||
|
|
||||||
# NOTE: this check must be done ASAP.
|
# NOTE: this check must be done ASAP.
|
||||||
# We doesn't need to be authenticated.
|
# We doesn't need to be authenticated (this ability has lost in PyMongo 3.6)
|
||||||
|
if LooseVersion(PyMongoVersion) <= LooseVersion('3.5'):
|
||||||
check_compatibility(module, client)
|
check_compatibility(module, client)
|
||||||
|
|
||||||
if login_user is None and login_password is None:
|
if login_user is None and login_password is None:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue