Skip to content

Commit 6b83b2c

Browse files
committed
Revert "Specify the certificate directory for the requests module"
This reverts commit 75e8c89.
1 parent 279fc58 commit 6b83b2c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/fts3/rest/client/context.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def _validate_endpoint(self):
145145
raise BadEndpoint("%s (%s)" % (self.endpoint, str(e))), None, sys.exc_info()[2]
146146
return endpoint_info
147147

148-
def __init__(self, endpoint, ucert=None, ukey=None, verify=True, access_token=None, no_creds=False, capath='/etc/grid-security/certificates',
148+
def __init__(self, endpoint, ucert=None, ukey=None, verify=True, access_token=None, no_creds=False, capath=None,
149149
request_class=Request, connectTimeout=30, timeout=30):
150150
self.passwd = None
151151

@@ -159,11 +159,7 @@ def __init__(self, endpoint, ucert=None, ukey=None, verify=True, access_token=No
159159
self.ukey = None
160160
else:
161161
self._set_x509(ucert, ukey)
162-
163-
if request_class == Request:
164-
verify = capath
165-
capath = None
166-
162+
167163
self._requester = request_class(
168164
self.ucert, self.ukey, passwd=self.passwd, verify=verify, access_token=self.access_token, capath=capath,
169165
connectTimeout=connectTimeout, timeout=timeout)

0 commit comments

Comments
 (0)