Skip to content

Commit

Permalink
Update elasticsearch.go
Browse files Browse the repository at this point in the history
  • Loading branch information
buger authored Jun 6, 2019
1 parent 4006eaf commit 576be76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pumps/elasticsearch.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ func (e *ElasticsearchPump) Init(config interface{}) error {
log.WithFields(logrus.Fields{
"prefix": elasticsearchPrefix,
}).Info("Version not specified, defaulting to 3. If you are importing to Elasticsearch 5, please specify \"version\" = \"5\"")
case "3", "5":
case "3", "5", "6":
default:
err := errors.New("Only 3 or 5 are valid values for this field")
err := errors.New("Only 3, 5, 6 are valid values for this field")
log.WithFields(logrus.Fields{
"prefix": elasticsearchPrefix,
}).Fatal("Invalid version: ", err)
Expand Down

0 comments on commit 576be76

Please sign in to comment.