Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
dchristidis committed Apr 26, 2024
1 parent ef17958 commit 2185e4c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions lib/rucio/core/replica.py
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ def get_multi_cache_prefix(cache_site, filename, logger=logging.log):
x_caches = REGION.get('CacheSites')
if x_caches is NO_VALUE:
try:
response = requests.get('{}/serverRanges'.format(vp_endpoint), timeout=1, verify=False)
response = requests.get('{}/serverRanges'.format(vp_endpoint), timeout=1)
if response.ok:
x_caches = response.json()
REGION.set('CacheSites', x_caches)
Expand Down Expand Up @@ -2950,7 +2950,6 @@ def list_dataset_replicas_vp(scope, name, deep=False, *, session: "Session", log

try:
vp_replies = requests.get('{}/ds/{}/{}:{}'.format(vp_endpoint, nr_replies, scope, name),
verify=False,
timeout=1)
if vp_replies.status_code == 200:
vp_replies = vp_replies.json()
Expand Down
4 changes: 1 addition & 3 deletions lib/rucio/transfertool/fts3.py
Original file line number Diff line number Diff line change
Expand Up @@ -844,15 +844,13 @@ def __init__(self, external_host, oidc_account=None, oidc_support: bool = False,
if self.external_host.startswith('https://'):
if self.token:
self.cert = None
self.verify = False
self.headers['Authorization'] = 'Bearer ' + self.token
else:
cert = _pick_cert_file(vo=vo)
self.cert = (cert, cert)
self.verify = False
else:
self.cert = None
self.verify = True # True is the default setting of a requests.* method
self.verify = True # True is the default setting of a requests.* method

self.scitags_exp_id, self.scitags_activity_ids = _scitags_ids(logger=logger)

Expand Down

0 comments on commit 2185e4c

Please sign in to comment.