Skip to content

Commit 63d6cc3

Browse files
committed
fix: do not configure the indexPrefix name
1 parent dedf20c commit 63d6cc3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/DIRAC/WorkloadManagementSystem/DB/ElasticJobParametersDB.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,13 @@ def __init__(self, parentLogger=None):
4646
"""Standard Constructor"""
4747

4848
try:
49-
section = getDatabaseSection("WorkloadManagement/ElasticJobParametersDB")
50-
indexPrefix = gConfig.getValue(f"{section}/IndexPrefix", CSGlobals.getSetup()).lower()
49+
indexPrefix = CSGlobals.getSetup().lower()
5150

5251
# Connecting to the ES cluster
5352
super().__init__(name, "WorkloadManagement/ElasticJobParametersDB", indexPrefix, parentLogger=parentLogger)
5453
except Exception as ex:
5554
self.log.error("Can't connect to ElasticJobParametersDB", repr(ex))
56-
raise RuntimeError("Can't connect to ElasticJobParametersDB")
55+
raise RuntimeError("Can't connect to ElasticJobParametersDB") from ex
5756

5857
self.oldIndexName = f"{self.getIndexPrefix()}_{name.lower()}"
5958
self.indexName_base = f"{self.getIndexPrefix()}_elasticjobparameters_index"

0 commit comments

Comments
 (0)