Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
File Transfer Service
fts-rest
Commits
75e8c899
Commit
75e8c899
authored
Jun 20, 2018
by
Aris Angelogiannopoulos
Browse files
Specify the certificate directory for the requests module
parent
7d39f24e
Pipeline
#421061
passed with stage
in 6 minutes and 52 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/fts3/rest/client/context.py
View file @
75e8c899
...
...
@@ -145,7 +145,7 @@ class Context(object):
raise
BadEndpoint
(
"%s (%s)"
%
(
self
.
endpoint
,
str
(
e
))),
None
,
sys
.
exc_info
()[
2
]
return
endpoint_info
def
__init__
(
self
,
endpoint
,
ucert
=
None
,
ukey
=
None
,
verify
=
True
,
access_token
=
None
,
no_creds
=
False
,
capath
=
None
,
def
__init__
(
self
,
endpoint
,
ucert
=
None
,
ukey
=
None
,
verify
=
True
,
access_token
=
None
,
no_creds
=
False
,
capath
=
'/etc/grid-security/certificates'
,
request_class
=
Request
,
connectTimeout
=
30
,
timeout
=
30
):
self
.
passwd
=
None
...
...
@@ -159,7 +159,11 @@ class Context(object):
self
.
ukey
=
None
else
:
self
.
_set_x509
(
ucert
,
ukey
)
if
request_class
==
Request
:
verify
=
capath
capath
=
None
self
.
_requester
=
request_class
(
self
.
ucert
,
self
.
ukey
,
passwd
=
self
.
passwd
,
verify
=
verify
,
access_token
=
self
.
access_token
,
capath
=
capath
,
connectTimeout
=
connectTimeout
,
timeout
=
timeout
)
...
...
Andrea Manzi
@amanzi
mentioned in commit
6b83b2c1
·
Aug 22, 2018
mentioned in commit
6b83b2c1
mentioned in commit 6b83b2c1df4d3fa7f7e2369fcd180fb406a27f5e
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment