# HG changeset patch # User Samuel Trégouët <samuel.tregouet@logilab.fr> # Date 1485958198 -3600 # Wed Feb 01 15:09:58 2017 +0100 # Node ID a26b16bb6ec53907175b1c3b49d62ba250d6fe7b # Parent a0fa54761a3da383a86b4f6c26853a04c668f1af [hook] use indexer.index_name diff --git a/hooks.py b/hooks.py --- a/hooks.py +++ b/hooks.py @@ -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():