fix(minion): Fix version compare in minion.sls#419
fix(minion): Fix version compare in minion.sls#419myii merged 1 commit intosaltstack-formulas:masterfrom
Conversation
4e1a0b1 to
e411732
Compare
noelmcloughlin
left a comment
There was a problem hiding this comment.
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. |
|
@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
myii
left a comment
There was a problem hiding this comment.
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.