Commit d08f79df authored by Pablo Panero's avatar Pablo Panero
Browse files

Merge branch 'dev' into 'master'

Bug Fix: config variable name should not contain env prefix

See merge request webservices/cern-search/cern-search-rest-api!42
parents 1980a259 d97b0627
......@@ -41,10 +41,10 @@ def cern_search_record_to_index(record):
return index_name, index_name[len(prefix) + 1:]
current_app.logger.debug('Index {0}{1} - Doc {2}'.format(
current_app.config['CERN_SEARCH_INDEX_PREFIX'],
current_app.config['INDEX_PREFIX'],
current_app.config['INDEXER_DEFAULT_INDEX'],
current_app.config['INDEXER_DEFAULT_DOC_TYPE'])
)
return ('{0}{1}'.format(current_app.config['CERN_SEARCH_INDEX_PREFIX'],
return ('{0}{1}'.format(current_app.config['INDEX_PREFIX'],
current_app.config['INDEXER_DEFAULT_INDEX']),
current_app.config['INDEXER_DEFAULT_DOC_TYPE'])
\ No newline at end of file
Supports Markdown
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