Skip to content
Snippets Groups Projects
Commit a26b16bb6ec5 authored by Samuel Trégouët's avatar Samuel Trégouët
Browse files

[hook] use indexer.index_name

parent a0fa54761a3d
No related branches found
No related tags found
No related merge requests found
......@@ -72,7 +72,7 @@
def postcommit_event(self):
indexer = self.cnx.vreg['es'].select('indexer', self.cnx)
es = indexer.get_connection()
if es is None or not self.cnx.vreg.config['index-name']:
if es is None or not indexer.index_name:
log.error('no connection to ES (not configured) skip ES indexing')
return
for entity in self.get_data():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment