Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
graces_es6
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
graces_es6
Commits
67203199
Commit
67203199
authored
Nov 03, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新代码
parent
6eb105fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
es.py
search/utils/es.py
+3
-3
No files found.
search/utils/es.py
View file @
67203199
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment