Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checks for ElasticSearch 0.9x and 1.x #550

Merged
merged 2 commits into from
Apr 23, 2014
Merged

Conversation

maraca
Copy link
Contributor

@maraca maraca commented Apr 15, 2014

/_cluster/nodes/_local has been retired with ES 1.0, so this check does not work anymore.
By identifying the cluster version before running the check, we can adjust the URL based on the version.

This has been tested on ElasticSearch 1.0 and 0.90.11

/_cluster/nodes/_local has been retired with ES 1.0, so this check does
not work anymore.
By identifying the cluster version before running the check,
we can adjust the URL.
@@ -45,10 +46,20 @@ def get_es_resource(resource)
end
end

def version
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

let's make this more descriptive, either elasticsearch_version or es_version

@maraca
Copy link
Contributor Author

maraca commented Apr 23, 2014

@portertech good call, I renamed it to get_es_version which matches previously implemented get_es_resource.

@portertech
Copy link
Contributor

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants