File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -103,10 +103,12 @@ async def NewDriver(backend, data):
103
103
if "encrypted" in data :
104
104
kwargs ["encrypted" ] = data ["encrypted" ]
105
105
if "trustedCertificates" in data :
106
- kwargs ["trusted_certificates" ] = [
107
- "/usr/local/share/custom-ca-certificates/" + cert
108
- for cert in data ["trustedCertificates" ]
109
- ]
106
+ kwargs ["trusted_certificates" ] = data ["trustedCertificates" ]
107
+ if isinstance (kwargs ["trusted_certificates" ], list ):
108
+ kwargs ["trusted_certificates" ] = [
109
+ "/usr/local/share/custom-ca-certificates/" + cert
110
+ for cert in kwargs ["trusted_certificates" ]
111
+ ]
110
112
111
113
data .mark_item_as_read ("domainNameResolverRegistered" )
112
114
driver = neo4j .AsyncGraphDatabase .driver (
Original file line number Diff line number Diff line change @@ -103,10 +103,12 @@ def NewDriver(backend, data):
103
103
if "encrypted" in data :
104
104
kwargs ["encrypted" ] = data ["encrypted" ]
105
105
if "trustedCertificates" in data :
106
- kwargs ["trusted_certificates" ] = [
107
- "/usr/local/share/custom-ca-certificates/" + cert
108
- for cert in data ["trustedCertificates" ]
109
- ]
106
+ kwargs ["trusted_certificates" ] = data ["trustedCertificates" ]
107
+ if isinstance (kwargs ["trusted_certificates" ], list ):
108
+ kwargs ["trusted_certificates" ] = [
109
+ "/usr/local/share/custom-ca-certificates/" + cert
110
+ for cert in kwargs ["trusted_certificates" ]
111
+ ]
110
112
111
113
data .mark_item_as_read ("domainNameResolverRegistered" )
112
114
driver = neo4j .GraphDatabase .driver (
You can’t perform that action at this time.
0 commit comments