Skip to content

Commit b5fb585

Browse files
atsaregfstagni
authored andcommitted
sweep: #8037 Fix getting ES configuration
1 parent 3efa4ef commit b5fb585

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/DIRAC/ConfigurationSystem/Client/Utilities.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -467,9 +467,9 @@ def _getCACerts(cs_path):
467467
gLogger.debug("Failed to get the configuration parameter: CRT. Using False")
468468
certs = False
469469
else:
470-
certs = result["Value"]
470+
certs = result["Value"].lower() in ("true", "yes", "y", "1")
471471
else:
472-
certs = result["Value"]
472+
certs = result["Value"].lower() in ("true", "yes", "y", "1")
473473
parameters["CRT"] = certs
474474

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

582582
return S_OK(parameters)

0 commit comments

Comments
 (0)