Skip to content

Commit

Permalink
Merge pull request #443 from PanDAWMS/unify-es-index-config
Browse files Browse the repository at this point in the history
Unify es index config
  • Loading branch information
witxka committed Jul 5, 2022
2 parents 3860022 + 4212e36 commit 5af54ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
4 changes: 2 additions & 2 deletions Utils/Dataflow/data4es/071_esConsistency/consistency.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def load_config(fname):
'ES_USER': '',
'ES_PASSWORD': '',
'ES_CA_CERTS': '/etc/pki/tls/certs/CERN-bundle.pem',
'ES_INDEX': ''
'ES_INDEX_TASKS': ''
}
with open(fname) as f:
lines = f.readlines()
Expand All @@ -76,7 +76,7 @@ def load_config(fname):
if key in cfg:
cfg[key] = value
global INDEX
INDEX = cfg['ES_INDEX']
INDEX = cfg['ES_INDEX_TASKS']
return cfg


Expand Down
7 changes: 0 additions & 7 deletions Utils/Elasticsearch/config/es.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,3 @@ ES_INDEX_PROGRESS=production_progress
# avail: production_progress,
# analysis_progress


# ---
#
# This variable is left for backwards compatibility:
# some stages of the `data4es` dataflow rely on it.
# TODO: replace with ES_INDEX_TASKS everywhere
ES_INDEX=tasks_production #default index to work with

0 comments on commit 5af54ca

Please sign in to comment.