Skip to content

Commit

Permalink
Hot fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Foorth committed May 23, 2023
1 parent 258b006 commit c293845
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/libs/elasticsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c293845

Please sign in to comment.