bin/check-mongodb.py in sensu-plugins-mongodb-0.0.1.alpha.2 vs bin/check-mongodb.py in sensu-plugins-mongodb-0.0.1

- old
+ new

@@ -270,10 +270,10 @@ def mongo_connect(host=None, port=None, ssl=False, user=None, passwd=None, replica=None): try: # ssl connection for pymongo > 2.3 if pymongo.version >= "2.3": if replica is None: - con = pymongo.MongoClient(host, port) + con = pymongo.MongoClient(host, port, ssl=ssl) else: con = pymongo.Connection(host, port, read_preference=pymongo.ReadPreference.SECONDARY, ssl=ssl, replicaSet=replica, network_timeout=10) else: if replica is None: con = pymongo.Connection(host, port, slave_okay=True, network_timeout=10)