Skip to content

Commit 00caccc

Browse files
make method to check to enable ssl or not, check if bool or str with isinstance() #2
1 parent 6fc4302 commit 00caccc

File tree

1 file changed

+1
-1
lines changed
  • mongodb_consistent_backup/Common

1 file changed

+1
-1
lines changed

mongodb_consistent_backup/Common/DB.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def client_opts(self):
7474
def connect(self):
7575
try:
7676
logging.debug("Getting MongoDB connection to %s (replicaSet=%s, readPreference=%s, ssl=%s)" % (
77-
self.uri, self.replset, self.read_pref, self.ssl_enabled
77+
self.uri, self.replset, self.read_pref, self.do_ssl()
7878
))
7979
conn = MongoClient(**self.client_opts())
8080
if self.do_connect:

0 commit comments

Comments
 (0)