Skip to content

Commit

Permalink
fixed es auth issue
Browse files Browse the repository at this point in the history
  • Loading branch information
tikazyq committed Apr 14, 2022
1 parent 38157ea commit 856a55a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/crawlab/config/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = '0.3.4'
VERSION = '0.3.5'
2 changes: 1 addition & 1 deletion python/crawlab/db/es.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def get_client() -> elasticsearch.Elasticsearch:
ds = get_data_source()
base_auth = None
if ds.get('username') is not None and ds.get('password') is not None:
base_auth = f'{ds.get("username")}:{ds.get("password")}'
base_auth = (ds.get('username'), ds.get('password'))
return elasticsearch.Elasticsearch(
hosts=[{'host': ds.get('host'), 'port': ds.get('port')}],
basic_auth=base_auth,
Expand Down

0 comments on commit 856a55a

Please sign in to comment.