|
|
@ -179,7 +179,7 @@ def check_compatibility(module, client):
|
|
|
|
loose_srv_version = LooseVersion(client.server_info()['version'])
|
|
|
|
loose_srv_version = LooseVersion(client.server_info()['version'])
|
|
|
|
loose_driver_version = LooseVersion(PyMongoVersion)
|
|
|
|
loose_driver_version = LooseVersion(PyMongoVersion)
|
|
|
|
|
|
|
|
|
|
|
|
if loose_srv_version >= LooseVersion('3.2') and loose_driver_version <= LooseVersion('3.2'):
|
|
|
|
if loose_srv_version >= LooseVersion('3.2') and loose_driver_version < LooseVersion('3.2'):
|
|
|
|
module.fail_json(msg=' (Note: you must use pymongo 3.2+ with MongoDB >= 3.2)')
|
|
|
|
module.fail_json(msg=' (Note: you must use pymongo 3.2+ with MongoDB >= 3.2)')
|
|
|
|
|
|
|
|
|
|
|
|
elif loose_srv_version >= LooseVersion('3.0') and loose_driver_version <= LooseVersion('2.8'):
|
|
|
|
elif loose_srv_version >= LooseVersion('3.0') and loose_driver_version <= LooseVersion('2.8'):
|
|
|
|