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

更新代码

parent 6eb105fe
......@@ -39,7 +39,7 @@ def get_es():
'sniff_on_connection_fail': False,
}
new_hosts = settings.ES7_HOSTS
new_es = Es(hosts=new_hosts, **init_args)
new_es = Es(hosts=new_hosts, http_auth=("elastic", "gengmei!@#"), **init_args)
return new_es
......@@ -63,7 +63,7 @@ def get_talos_es():
'sniff_on_connection_fail': False,
}
talos_hosts = settings.TALOS_ES_HOSTS
talos_es = Es(hosts=talos_hosts, **init_args)
talos_es = Es(hosts=talos_hosts,http_auth=("elastic", "gengmei!@#"), **init_args)
return talos_es
......@@ -73,7 +73,7 @@ def get_talos_es6():
'sniff_on_connection_fail': False,
}
talos_hosts = settings.ES7_HOSTS
talos_es = Es(hosts=talos_hosts, **init_args)
talos_es = Es(hosts=talos_hosts, http_auth=("elastic", "gengmei!@#"),**init_args)
return talos_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