-
Notifications
You must be signed in to change notification settings - Fork 420
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
fix(minion): Fix version compare in minion.sls #419
fix(minion): Fix version compare in minion.sls #419
Conversation
4e1a0b1
to
e411732
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @sticky-note
LGTM too, but Salt versions < 2017 are not supported anymore (cf https://s.saltstack.com/product-support-lifecycle/) so I think this patch is not useful. |
@daks, @noelmcloughlin .. So we can also remove this entire test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Already covered by #416.
@myii @noelmcloughlin. I'll close this when #416 get merged but if it'll take time, can we merge this and rebase #416 with this modification ? |
This is approved - Yes we should merge - comments can be addressed in #416 |
@sticky-note Let's improve this implementation and get this merged: - {%- if grains['saltversioninfo'][0] >= 2016 and grains['saltversioninfo'][1] >= 3 %}
+ {%- if grains['saltversioninfo'] > [2016, 3] %} CC: @noelmcloughlin @daks. |
Do we want to support Salt < 2017? which itself is not supported par Saltstack itself? |
e411732
to
051c3df
Compare
@sticky-note The following is sufficient by itself, no need for the - {%- if grains['saltversioninfo'][0] >= 2017
- or grains['saltversioninfo'] >= [ 2016, 3 ] %}
+ {%- if grains['saltversioninfo'] >= [2016, 3] %} |
The PR is about that |
@sticky-note Forget the old method and try this by itself: {%- if grains['saltversioninfo'] >= [2016, 3] %} You'll find it works for |
@myii ok then. @sticky-note yes |
051c3df
to
49bf81b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @sticky-note. I would have preferred it as [2016, 3]
(without the extra spaces) but this should be fine for now.
🎉 This PR is included in version 0.58.4 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
No description provided.