Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
Added "hosts" parameter
  • Loading branch information
buratinopy authored Oct 22, 2021
1 parent 8aa3b59 commit 246aa14
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion elastalert/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ def __init__(self, conf):
"""
:arg conf: es_conn_config dictionary. Ref. :func:`~util.build_es_conn_config`
"""
super(ElasticSearchClient, self).__init__(host=conf['es_host'],
super(ElasticSearchClient, self).__init__(host=conf.get('es_host', None),
hosts=conf.get('es_hosts', []),
port=conf['es_port'],
url_prefix=conf['es_url_prefix'],
use_ssl=conf['use_ssl'],
Expand Down

0 comments on commit 246aa14

Please sign in to comment.