Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AmendsenProject
Project
Project
Details
Activity
Releases
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
Shaik Janipasha
AmendsenProject
Commits
8df12d0a
Unverified
Commit
8df12d0a
authored
Mar 30, 2020
by
jornh
Committed by
GitHub
Mar 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clarify ES publisher warning on first run (#230)
parent
69bf5b77
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
elasticsearch_publisher.py
databuilder/publisher/elasticsearch_publisher.py
+2
-2
No files found.
databuilder/publisher/elasticsearch_publisher.py
View file @
8df12d0a
...
@@ -150,8 +150,8 @@ class ElasticsearchPublisher(Publisher):
...
@@ -150,8 +150,8 @@ class ElasticsearchPublisher(Publisher):
indices
=
self
.
elasticsearch_client
.
indices
.
get_alias
(
self
.
elasticsearch_alias
)
.
keys
()
indices
=
self
.
elasticsearch_client
.
indices
.
get_alias
(
self
.
elasticsearch_alias
)
.
keys
()
return
indices
return
indices
except
NotFoundError
:
except
NotFoundError
:
LOGGER
.
warn
(
'Received index not found error from Elasticsearch. '
+
LOGGER
.
warn
(
"Received index not found error from Elasticsearch. "
+
'The index doesnt exist for a newly created ES.'
)
"The index doesn't exist for a newly created ES. It's OK on first run."
)
# return empty list on exception
# return empty list on exception
return
[]
return
[]
...
...
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