Commit 062123e1 authored by Damien DESPRES's avatar Damien DESPRES
Browse files

migration es7

parent 546277c3
Pipeline #18858 passed with stages
in 27 seconds
......@@ -77,8 +77,9 @@ def setup_indices(cfg):
logging.error(e)
try:
rep = destin_es.indices.create(cfg['reindexer']['template_name'], template)
logging.debug(rep)
logging.info('Create index %s'% cfg['reindexer']['template_name'])
rep = destin_es.indices.put_template(cfg['reindexer']['template_name'], template)
logging.info(rep)
except Exception as e:
logging.warning(e)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment