Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
mentha
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
1
Merge Requests
1
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
mentha
Commits
702513b9
Commit
702513b9
authored
Nov 19, 2020
by
李小芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改es
parent
48a4bf3d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
toutiao.py
qa/models/toutiao.py
+2
-2
No files found.
qa/models/toutiao.py
View file @
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
...
...
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