Skip to content

Commit

Permalink
fix: do not configure the indexPrefix name
Browse files Browse the repository at this point in the history
  • Loading branch information
fstagni committed Nov 14, 2023
1 parent 3d78146 commit d206f78
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,13 @@ def __init__(self, parentLogger=None):
"""Standard Constructor"""

try:
section = getDatabaseSection("WorkloadManagement/ElasticJobParametersDB")
indexPrefix = gConfig.getValue(f"{section}/IndexPrefix", CSGlobals.getSetup()).lower()
indexPrefix = CSGlobals.getSetup().lower()

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

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

0 comments on commit d206f78

Please sign in to comment.