Skip to content

Conversation

@untergeek
Copy link
Contributor

This is the current default behavior anyway

fixes #456

This is the current behavior anyway

def self.default_template_path(es_major_version)
default_template_name = "elasticsearch-template-es#{es_major_version}x.json"
es_major_version == "1" ? template_version = "2" : template_version = es_major_version
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you meant this

template_version = es_major_version == "1" ?  "2" :  es_major_version

I was a bit confused with the assignment in the ternary ops.

@ph
Copy link
Contributor

ph commented Jul 26, 2016

LGTM, I havent tested with an actual ES 1.7 but I am sure it resolve #456

@untergeek
Copy link
Contributor Author

Thanks for fixing the ternary operator. I'm still trying to cross over my python domain knowledge into Ruby... 😮

@ph
Copy link
Contributor

ph commented Jul 26, 2016

Thanks for fixing the ternary operator. I'm still trying to cross over my python domain knowledge into Ruby... 😮

Don't worry don't tell anyone I use semicolon in ruby now because of java..

@ph
Copy link
Contributor

ph commented Jul 26, 2016

LGTM

@elasticsearch-bot
Copy link

Aaron Mildenstein merged this into the following branches!

Branch Commits
master b2debae, 2e944ef

elasticsearch-bot pushed a commit that referenced this pull request Jul 26, 2016
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.

Add support for ES 1.x to use the ES 2.x template

3 participants