Commit 192e3e6b authored by 李小芳's avatar 李小芳

Merge branch 'add_hauxiang' into 'master'

修改es

See merge request !8
parents a3046430 702513b9
......@@ -65,7 +65,7 @@ def get_es(es_hosts_config=None):
'sniff_on_connection_fail': False,
}
new_hosts = settings.ES7_HOSTS if not es_hosts_config else es_hosts_config
new_es = Es(hosts=new_hosts, **init_args)
new_es = Es(hosts=new_hosts, http_auth=("elastic", "gengmei!@#"),**init_args)
return new_es
......@@ -76,7 +76,7 @@ def get_service_es(es_hosts_config=None):
}
new_hosts = settings.ES7_HOSTS_SERVICE if not es_hosts_config else es_hosts_config
new_es = Es(hosts=new_hosts, **init_args)
new_es = Es(hosts=new_hosts, http_auth=("elastic", "gengmei!@#"), **init_args)
return new_es
......
Markdown is supported
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