Skip to content

Commit

Permalink
Generator: Utils: Rename the environment variable in EsVersion()
Browse files Browse the repository at this point in the history
Use "ELASTICSEARCH_BUILD_VERSION" to not clash with the general "ELASTICSEARCH_VERSION" value,
used eg. to launch a proper version of Elasticsearch.
  • Loading branch information
karmi committed Mar 22, 2020
1 parent 2e5dc68 commit 255fe3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/cmd/generate/utils/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ var (
// EsVersion returns the Elasticsearch from environment variable, Java property file, or an error.
//
func EsVersion(fpath string) (string, error) {
if envEsVersion := os.Getenv("ELASTICSEARCH_VERSION"); envEsVersion != "" {
if envEsVersion := os.Getenv("ELASTICSEARCH_BUILD_VERSION"); envEsVersion != "" {
return envEsVersion, nil
}

Expand Down

0 comments on commit 255fe3a

Please sign in to comment.