Skip to content

Commit e6692dc

Browse files
authored
Merge pull request #5726 from DIRACGridBot/cherry-pick-2-cf6851615-integration
[sweep:integration] Correct check of CA location in TornadoBaseClient
2 parents a62eec7 + f2e68cd commit e6692dc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/DIRAC/Core/Tornado/Client/private/TornadoBaseClient.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,10 +516,12 @@ def _request(self, retry=0, outputFile=None, **kwargs):
516516
# Getting CA file (or skip verification)
517517
verify = not self.kwargs.get(self.KW_SKIP_CA_CHECK)
518518
if verify:
519-
cafile = Locations.getCAsLocation()
520-
if not cafile:
521-
gLogger.error("No CAs found!")
522-
return S_ERROR("No CAs found!")
519+
if not self.__ca_location:
520+
self.__ca_location = Locations.getCAsLocation()
521+
if not self.__ca_location:
522+
gLogger.error("No CAs found!")
523+
return S_ERROR("No CAs found!")
524+
523525
verify = self.__ca_location
524526

525527
# getting certificate

0 commit comments

Comments
 (0)