From c2938450ec36af561da3d399d103b0d53b18bdcd Mon Sep 17 00:00:00 2001 From: Aleksandr Alekseev Date: Tue, 23 May 2023 18:10:00 +0200 Subject: [PATCH] Hot fix --- core/libs/elasticsearch.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/libs/elasticsearch.py b/core/libs/elasticsearch.py index c24f41bf..edd91b32 100644 --- a/core/libs/elasticsearch.py +++ b/core/libs/elasticsearch.py @@ -38,9 +38,9 @@ def get_es_credentials(instance): else: if hasattr(settings, 'ES_CLUSTER'): es_host = settings.ES_CLUSTER.get('esHost', None) - es_port = settings.ES_CLUSTER.get('esPort', None) - es_protocol = settings.ES_CLUSTER.get('esProtocol', None) - es_path = settings.ES_CLUSTER.get('esPath', None) + es_port = settings.ES_CLUSTER.get('esPort', '9200') + es_protocol = settings.ES_CLUSTER.get('esProtocol', 'http') + es_path = settings.ES_CLUSTER.get('esPath', '') es_host = es_protocol + '://' + es_host + ':' + es_port + es_path if es_host else None es_user = settings.ES_CLUSTER.get('esUser', None) es_password = settings.ES_CLUSTER.get('esPassword', None)