Skip to content

Commit f734ebe

Browse files
Just set var instead of use dict .update() on a single key/val
1 parent e7ec748 commit f734ebe

File tree

1 file changed

+1
-3
lines changed
  • mongodb_consistent_backup/Common

1 file changed

+1
-3
lines changed

mongodb_consistent_backup/Common/DB.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,7 @@ def client_opts(self):
6161
"ssl_cert_reqs": CERT_REQUIRED,
6262
})
6363
if self.ssl_insecure:
64-
opts.update({
65-
"ssl_cert_reqs": CERT_NONE
66-
})
64+
opts["ssl_cert_reqs"] = CERT_NONE
6765
return opts
6866

6967
def connect(self):

0 commit comments

Comments
 (0)