Skip to content

Commit

Permalink
sweep: #8037 Fix getting ES configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
atsareg authored and fstagni committed Feb 11, 2025
1 parent 3efa4ef commit b5fb585
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DIRAC/ConfigurationSystem/Client/Utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -467,9 +467,9 @@ def _getCACerts(cs_path):
gLogger.debug("Failed to get the configuration parameter: CRT. Using False")
certs = False
else:
certs = result["Value"]
certs = result["Value"].lower() in ("true", "yes", "y", "1")
else:
certs = result["Value"]
certs = result["Value"].lower() in ("true", "yes", "y", "1")
parameters["CRT"] = certs

# If connection is through certificates get the mandatory parameters: ca_certs, client_key, client_cert
Expand Down Expand Up @@ -574,9 +574,9 @@ def _getCACerts(cs_path):
gLogger.debug("Failed to get the configuration parameter: SSL. Assuming SSL is needed")
ssl = True
else:
ssl = False if result["Value"].lower() in ("false", "no", "n") else True
ssl = result["Value"].lower() in ("true", "yes", "y", "1")
else:
ssl = False if result["Value"].lower() in ("false", "no", "n") else True
ssl = result["Value"].lower() in ("true", "yes", "y", "1")
parameters["SSL"] = ssl

return S_OK(parameters)
Expand Down

0 comments on commit b5fb585

Please sign in to comment.