Commit b322cd55 authored by 李小芳's avatar 李小芳

更新代码

parent 8974d9c9
......@@ -189,5 +189,5 @@ def get_es_instance():
'sniff_on_connection_fail': False,
}
new_hosts = settings.ES7_HOSTS
__es_instance = Elasticsearch(hosts=new_hosts, **init_args)
__es_instance = Elasticsearch(hosts=new_hosts, http_auth=("elastic", "gengmei!@#"), **init_args)
return __es_instance
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